summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-33262.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-33262.rs')
-rw-r--r--tests/ui/parser/issues/issue-33262.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-33262.rs b/tests/ui/parser/issues/issue-33262.rs
new file mode 100644
index 000000000..3a612f95c
--- /dev/null
+++ b/tests/ui/parser/issues/issue-33262.rs
@@ -0,0 +1,6 @@
+// Issue #33262
+
+pub fn main() {
+ for i in 0..a as { }
+ //~^ ERROR expected type, found `{`
+}