rust/tests/ui/error-codes/E0599.rs

6 lines
86 B
Rust

struct Foo;
fn main() {
|| if let Foo::NotEvenReal() = Foo {}; //~ ERROR E0599
}