summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-27639.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-27639.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-27639.rs b/src/test/ui/issues/issue-27639.rs
new file mode 100644
index 000000000..945fbad91
--- /dev/null
+++ b/src/test/ui/issues/issue-27639.rs
@@ -0,0 +1,11 @@
+// run-pass
+#![allow(dead_code)]
+#![allow(non_upper_case_globals)]
+
+fn main() {
+ const iter: i32 = 0;
+
+ for i in 1..10 {
+ println!("{}", i);
+ }
+}