Skip to content

Commit 0ad3b1c

Browse files
committed
add test
1 parent a524a9a commit 0ad3b1c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(const_loop)]
2+
3+
static _X: () = loop {}; //~ ERROR could not evaluate static initializer
4+
5+
fn main() {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0080]: could not evaluate static initializer
2+
--> $DIR/issue-70723.rs:3:17
3+
|
4+
LL | static _X: () = loop {};
5+
| ^^^^^^^ 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

Comments
 (0)