mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
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
|
|
}
|