This commit is contained in:
Ralf Jung 2020-04-04 16:57:54 +02:00
parent a524a9af91
commit 0ad3b1c9bf
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#![feature(const_loop)]
static _X: () = loop {}; //~ ERROR could not evaluate static initializer
fn main() {}

View File

@ -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]`)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.