diff options
Diffstat (limited to 'tests/ui/for-loop-while/long-while.rs')
-rw-r--r-- | tests/ui/for-loop-while/long-while.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/for-loop-while/long-while.rs b/tests/ui/for-loop-while/long-while.rs new file mode 100644 index 000000000..529cca7b7 --- /dev/null +++ b/tests/ui/for-loop-while/long-while.rs @@ -0,0 +1,12 @@ +// run-pass +// pretty-expanded FIXME #23616 + +#![allow(unused_variables)] + +pub fn main() { + let mut i: isize = 0; + while i < 1000000 { + i += 1; + let x = 3; + } +} |