Some if-let in RBE

This commit is contained in:
2023-09-30 19:39:55 -04:00
parent 6e50ec65f8
commit dacbddca6e
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
enum Foo {
Bar,
}
fn main() {
let a = Foo::Bar;
if let Foo::Bar = a {
println!("a is foobar");
}
}