summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for-loop-while/loop-label-shadowing.rs
blob: 9bedde67b78880c2cc8a6ef32fb73d0065541a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// Issue #12512.

// pretty-expanded FIXME #23616

fn main() {
    let mut foo = Vec::new();
    #[allow(unused_labels)]
    'foo: for i in &[1, 2, 3] {
        foo.push(*i);
    }
}