diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-9047.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-9047.rs b/src/test/ui/issues/issue-9047.rs new file mode 100644 index 000000000..fa8d75aec --- /dev/null +++ b/src/test/ui/issues/issue-9047.rs @@ -0,0 +1,14 @@ +// 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()); +} |