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