]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/loop-label-shadowing.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / for-loop-while / loop-label-shadowing.rs
1 // run-pass
2 // Issue #12512.
3
4 // pretty-expanded FIXME #23616
5
6 fn main() {
7     let mut foo = Vec::new();
8     #[allow(unused_labels)]
9     'foo: for i in &[1, 2, 3] {
10         foo.push(*i);
11     }
12 }