rust/tests/ui/reachable/unreachable-code.rs

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

9 lines
126 B
Rust
Raw Normal View History

#![deny(unreachable_code)]
2014-10-27 22:37:07 +00:00
#![allow(unused_variables)]
fn main() {
loop{}
2015-01-31 16:23:42 +00:00
let a = 3; //~ ERROR: unreachable statement
}