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

5 lines
84 B
Rust
Raw Normal View History

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