]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-attr-non-item-node.rs
Merge commit 'e214ea82ad0a751563acf67e1cd9279cf302db3a' into clippyup
[rust.git] / src / test / ui / lint / lint-attr-non-item-node.rs
1 // Checks that lint attributes work on non-item AST nodes
2
3 fn main() {
4     #[deny(unreachable_code)]
5     loop {
6         break;
7         "unreachable"; //~ ERROR unreachable statement
8     }
9 }