]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/loop-label-shadowing.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[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 }