rust/tests/ui/lint/lint-attr-non-item-node.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
190 B
Rust
Raw Normal View History

2017-01-07 08:05:27 +08:00
// Checks that lint attributes work on non-item AST nodes
fn main() {
#[deny(unreachable_code)]
loop {
break;
"unreachable"; //~ ERROR unreachable statement
}
}