summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-for-feature-gate.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-for-feature-gate.stderr')
-rw-r--r--src/test/ui/consts/const-for-feature-gate.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-for-feature-gate.stderr b/src/test/ui/consts/const-for-feature-gate.stderr
new file mode 100644
index 000000000..2ea377e09
--- /dev/null
+++ b/src/test/ui/consts/const-for-feature-gate.stderr
@@ -0,0 +1,12 @@
+error[E0658]: `for` is not allowed in a `const`
+ --> $DIR/const-for-feature-gate.rs:4:5
+ |
+LL | for _ in 0..5 {}
+ | ^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #87575 <https://github.com/rust-lang/rust/issues/87575> for more information
+ = help: add `#![feature(const_for)]` to the crate attributes to enable
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0658`.