Files
rust/tests/ui/loops/loop-with-label-9047.rs

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

16 lines
286 B
Rust
Raw Normal View History

2025-07-13 16:39:45 -04:00
// https://github.com/rust-lang/rust/issues/9047
//@ run-pass
#![allow(unused_mut)]
#![allow(unused_variables)]
fn decode() -> String {
2013-09-10 13:52:27 -07:00
'outer: loop {
let mut ch_start: usize;
2013-09-10 13:52:27 -07:00
break 'outer;
}
"".to_string()
2013-09-10 13:52:27 -07:00
}
2014-04-05 22:18:52 -07:00
pub fn main() {
println!("{}", decode());
}