diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-1257.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-1257.rs b/src/test/ui/issues/issue-1257.rs new file mode 100644 index 000000000..de5a6d359 --- /dev/null +++ b/src/test/ui/issues/issue-1257.rs @@ -0,0 +1,11 @@ +// run-pass +// pretty-expanded FIXME #23616 + +pub fn main () { + let mut line = "".to_string(); + let mut i = 0; + while line != "exit".to_string() { + line = if i == 9 { "exit".to_string() } else { "notexit".to_string() }; + i += 1; + } +} |