about summary refs log tree commit diff
path: root/tests/ui/loops/loop-with-label-9047.rs
blob: 29e6dba0b9e4a4fca7cfd35cb57a895a2e9c3eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://github.com/rust-lang/rust/issues/9047
//@ run-pass
#![allow(unused_mut)]
#![allow(unused_variables)]
fn decode() -> String {
    'outer: loop {
        let mut ch_start: usize;
        break 'outer;
    }
    "".to_string()
}

pub fn main() {
    println!("{}", decode());
}