8 lines
162 B
Rust
8 lines
162 B
Rust
#![feature(postfix_match)]
|
|
|
|
fn main() {
|
|
1 as i32.match {};
|
|
//~^ ERROR cast cannot be followed by a postfix match
|
|
//~| ERROR non-exhaustive patterns
|
|
}
|