rust/src/test/compile-fail/unreachable-code.rs
2012-03-10 20:38:03 -08:00

6 lines
145 B
Rust

// error-pattern:unreachable statement
fn main() {
loop{}
// red herring to make sure compilation fails
log(error, 42 == 'c');
}