summaryrefslogtreecommitdiffstats
path: root/tests/ui/reachable/unreachable-code.rs
blob: ad0dc8a8b9ccd4c710e20ac97fd8fd6236c9eca1 (plain)
1
2
3
4
5
6
7
8
#![deny(unreachable_code)]
#![allow(unused_variables)]

fn main() {
  loop{}

  let a = 3; //~ ERROR: unreachable statement
}