about summary refs log tree commit diff
path: root/tests/ui/loops/issue-1974.rs
blob: 9416f09c6e3dc2101a20fc877aa857d259650ed1 (plain)
1
2
3
4
5
6
7
8
9
10
//@ run-pass
// Issue 1974
// Don't double free the condition allocation

pub fn main() {
    let s = "hej".to_string();
    while s != "".to_string() {
        return;
    }
}