We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a524a9a commit 0ad3b1cCopy full SHA for 0ad3b1c
src/test/ui/consts/const-eval/issue-70723.rs
@@ -0,0 +1,5 @@
1
+#![feature(const_loop)]
2
+
3
+static _X: () = loop {}; //~ ERROR could not evaluate static initializer
4
5
+fn main() {}
src/test/ui/consts/const-eval/issue-70723.stderr
@@ -0,0 +1,9 @@
+error[E0080]: could not evaluate static initializer
+ --> $DIR/issue-70723.rs:3:17
+ |
+LL | static _X: () = loop {};
+ | ^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
6
7
+error: aborting due to previous error
8
9
+For more information about this error, try `rustc --explain E0080`.
0 commit comments