12 lines
371 B
Rust
12 lines
371 B
Rust
fn main() {}
|
|
|
|
fn attr_in_guard() {
|
|
match None::<u32> {
|
|
Some(!) //~ ERROR `!` patterns are experimental
|
|
//~^ ERROR: mismatched types
|
|
if #[deny(unused_mut)] //~ ERROR attributes on expressions are experimental
|
|
false //~ ERROR a guard on a never pattern will never be run
|
|
}
|
|
match false {} //~ ERROR: `bool` is non-empty
|
|
}
|