]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-attr-non-item-node.rs
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[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 }