summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-1974.rs
blob: 74a54a6029e1cc0f84f833756a993d13de5c976c (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// Issue 1974
// Don't double free the condition allocation
// pretty-expanded FIXME #23616

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