rust/tests/ui/for-loop-while/loop-label-shadowing.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
197 B
Rust
Raw Normal View History

//@ run-pass
// Issue #12512.
//@ pretty-expanded FIXME #23616
fn main() {
let mut foo = Vec::new();
#[allow(unused_labels)]
2015-01-31 17:20:46 +00:00
'foo: for i in &[1, 2, 3] {
foo.push(*i);
}
}