rust/tests/ui/destructuring-assignment/non-exhaustive-destructure.rs

5 lines
84 B
Rust

fn main() {
None = Some(3);
//~^ ERROR refutable pattern in local binding
}