mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 15:13:48 +00:00
19 lines
317 B
Rust
19 lines
317 B
Rust
fn deny_on_arm() {
|
|
match 0 {
|
|
#[deny(unused_variables)]
|
|
//~^ NOTE the lint level is defined here
|
|
y => (),
|
|
//~^ ERROR unused variable
|
|
}
|
|
}
|
|
|
|
#[deny(unused_variables)]
|
|
fn allow_on_arm() {
|
|
match 0 {
|
|
#[allow(unused_variables)]
|
|
y => (), // OK
|
|
}
|
|
}
|
|
|
|
fn main() {}
|