about summary refs log tree commit diff
path: root/tests/ui/for-loop-while/issue-51345.rs
blob: ec8f29b736496b86a277f8dea7286bd6dbc2f21b (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) }
}