]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/unreachable-code.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / reachable / unreachable-code.rs
1 #![deny(unreachable_code)]
2 #![allow(unused_variables)]
3
4 fn main() {
5   loop{}
6
7   let a = 3; //~ ERROR: unreachable statement
8 }