about summary refs log tree commit diff
path: root/tests/ui/loops/unreachable-while-loop-5741.rs
blob: bc69df0f6755ca5c2365b93ffcf4b0f84df3d13e (plain)
1
2
3
4
5
6
7
8
9
// https://github.com/rust-lang/rust/issues/5741
//@ run-pass
#![allow(while_true)]
#![allow(unreachable_code)]

pub fn main() {
    return;
    while true {};
}