rust/tests/ui/match/postfix-match/match-after-as.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
162 B
Rust
Raw Normal View History

2024-04-02 17:31:42 -05:00
#![feature(postfix_match)]
fn main() {
1 as i32.match {};
//~^ ERROR cast cannot be followed by a postfix match
//~| ERROR non-exhaustive patterns
}