2019-12-23 22:11:03 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2019-11-11 14:32:36 +00:00
|
|
|
--> $DIR/uninhabited-const-issue-61744.rs:8:5
|
|
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
LL | hint_unreachable()
|
|
|
|
| ------------------
|
|
|
|
| |
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
| inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
|
|
|
|
...
|
2019-11-11 14:32:36 +00:00
|
|
|
LL | fake_type()
|
|
|
|
| ^^^^^^^^^^^
|
2019-12-23 22:11:03 +00:00
|
|
|
| |
|
|
|
|
| reached the configured maximum number of stack frames
|
|
|
|
| inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
|
|
|
|
|
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/uninhabited-const-issue-61744.rs:12:36
|
2019-11-11 14:32:36 +00:00
|
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
LL | const CONSTANT: i32 = unsafe { fake_type() };
|
|
|
|
| -------------------------------^^^^^^^^^^^---
|
|
|
|
| |
|
|
|
|
| referenced constant has errors
|
2019-06-25 02:39:23 +00:00
|
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
= note: `#[deny(const_err)]` on by default
|
|
|
|
|
|
|
|
error[E0080]: erroneous constant used
|
|
|
|
--> $DIR/uninhabited-const-issue-61744.rs:18:10
|
2019-06-25 02:39:23 +00:00
|
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
LL | dbg!(i32::CONSTANT);
|
|
|
|
| ^^^^^^^^^^^^^ referenced constant has errors
|
2019-06-25 02:39:23 +00:00
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2019-06-25 02:39:23 +00:00
|
|
|
|
2019-12-23 22:11:03 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|