2023-12-24 15:49:07 -06:00
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
fn attr_in_guard() {
|
|
|
|
match None::<u32> {
|
|
|
|
Some(!) //~ ERROR `!` patterns are experimental
|
2024-02-01 16:45:00 -06:00
|
|
|
//~^ ERROR: mismatched types
|
2023-12-24 15:49:07 -06:00
|
|
|
if #[deny(unused_mut)] //~ ERROR attributes on expressions are experimental
|
|
|
|
false //~ ERROR a guard on a never pattern will never be run
|
|
|
|
}
|
2024-02-01 16:45:00 -06:00
|
|
|
match false {} //~ ERROR: `bool` is non-empty
|
2023-12-24 15:49:07 -06:00
|
|
|
}
|