rust/tests/ui/for-loop-while/loop-label-shadowing.rs
2024-02-16 20:02:50 +00:00

13 lines
197 B
Rust

//@ 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);
}
}