Files
rust/tests/ui/loops/unreachable-while-loop-5741.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
162 B
Rust
Raw Normal View History

2025-08-20 14:02:39 -04:00
// https://github.com/rust-lang/rust/issues/5741
//@ run-pass
#![allow(while_true)]
#![allow(unreachable_code)]
2013-08-17 08:37:42 -07:00
pub fn main() {
return;
while true {};
}