summary refs log tree commit diff
path: root/src/test/compile-fail/unreachable-code.rs
blob: e2ecb6713725a57d409340b8ccba31806d4e0478 (plain)
1
2
3
4
5
6
// error-pattern:unreachable statement
fn main() {
  loop{}
             // red herring to make sure compilation fails
  log(error, 42 == 'c');
}