summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-attr-non-item-node.rs
blob: 3f05e83a77d1b24f37fc8c0f82f493b90234bba0 (plain)
1
2
3
4
5
6
7
8
9
// Checks that lint attributes work on non-item AST nodes

fn main() {
    #[deny(unreachable_code)]
    loop {
        break;
        "unreachable"; //~ ERROR unreachable statement
    }
}