summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for-loop-while/issue-51345.rs
blob: 15571e8bf5b286441a26e1bb2e9abab697fb3f2e (plain)
1
2
3
4
5
6
7
8
// run-pass
#![allow(unreachable_code)]

fn main() {
    let mut v = Vec::new();

    loop { v.push(break) }
}