os-rust/src/test/ui/for-loop-while/loop-label-shadowing.rs
2019-07-27 18:56:16 +03:00

11 lines
167 B
Rust

// run-pass
// Issue #12512.
// pretty-expanded FIXME #23616
fn main() {
let mut foo = Vec::new();
'foo: for i in &[1, 2, 3] {
foo.push(*i);
}
}