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

10 lines
190 B
Rust
Raw Normal View History

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