rust/tests/ui/match/postfix-match/match-after-as.rs
2024-04-02 18:31:42 -04:00

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
}