rust/src/test/ui/consts/const-eval/issue-52475.stderr

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-08-18 07:48:14 -05:00
error[E0019]: constant contains unimplemented expression type
--> $DIR/issue-52475.rs:6:9
2018-08-18 07:48:14 -05:00
|
LL | / while n < 5 { //~ ERROR constant contains unimplemented expression type
2018-09-07 03:53:31 -05:00
LL | | n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
2018-08-18 07:48:14 -05:00
LL | | x = &0; // Materialize a new AllocId
LL | | }
| |_________^
warning: Constant evaluating a complex constant, this might take some time
--> $DIR/issue-52475.rs:2:18
2018-08-18 07:48:14 -05:00
|
LL | let _ = [(); {
| __________________^
LL | | //~^ WARNING Constant evaluating a complex constant, this might take some time
LL | | let mut x = &0;
2018-09-07 03:53:31 -05:00
LL | | let mut n = 0;
2018-08-18 07:48:14 -05:00
... |
LL | | 0
LL | | }];
| |_____^
2018-09-07 03:53:31 -05:00
error[E0080]: evaluation of constant value failed
--> $DIR/issue-52475.rs:7:17
2018-08-18 07:48:14 -05:00
|
2018-09-07 03:53:31 -05:00
LL | n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
| ^^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate
2018-08-18 07:48:14 -05:00
error: aborting due to 2 previous errors
Some errors occurred: E0019, E0080.
For more information about an error, try `rustc --explain E0019`.