summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-40782.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-40782.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-40782.stderr b/src/test/ui/issues/issue-40782.stderr
new file mode 100644
index 000000000..81f419bf6
--- /dev/null
+++ b/src/test/ui/issues/issue-40782.stderr
@@ -0,0 +1,14 @@
+error: missing `in` in `for` loop
+ --> $DIR/issue-40782.rs:4:11
+ |
+LL | for _i 0..2 {
+ | ^ help: try adding `in` here
+
+error: missing `in` in `for` loop
+ --> $DIR/issue-40782.rs:6:12
+ |
+LL | for _i of 0..2 {
+ | ^^ help: try using `in` here instead
+
+error: aborting due to 2 previous errors
+