]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-attr-non-item-node.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }