rust/tests/ui/for-loop-while/issue-51345.rs
2023-01-11 09:32:08 +00:00

9 lines
111 B
Rust

// run-pass
#![allow(unreachable_code)]
fn main() {
let mut v = Vec::new();
loop { v.push(break) }
}