Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
lint
/
lint-match-arms.rs
blob: 2c471a61054b2662a3cbeb40391293ddf539b6d4 [
file
] [
log
] [
blame
]
fn
deny_on_arm
()
{
match
0
{
#[
deny
(
unused_variables
)]
//~^ NOTE lint level defined here
y
=>
(),
//~^ ERROR unused variable
}
}
#[
deny
(
unused_variables
)]
fn
allow_on_arm
()
{
match
0
{
#[
allow
(
unused_variables
)]
y
=>
(),
// OK
}
}
fn
main
()
{}