diff options
Diffstat (limited to 'src/test/ui/lint/lint-match-arms.rs')
-rw-r--r-- | src/test/ui/lint/lint-match-arms.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/lint/lint-match-arms.rs b/src/test/ui/lint/lint-match-arms.rs deleted file mode 100644 index 5c2ccc60e..000000000 --- a/src/test/ui/lint/lint-match-arms.rs +++ /dev/null @@ -1,18 +0,0 @@ -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() {} |