2021-06-15 23:16:10 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2020-07-30 19:32:20 +00:00
|
|
|
--> $SRC_DIR/core/src/option.rs:LL:COL
|
|
|
|
|
|
|
|
|
LL | None => panic!("called `Option::unwrap()` on a `None` value"),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:9:38
|
2021-01-09 15:52:06 +00:00
|
|
|
| inside `Option::<i32>::unwrap` at $SRC_DIR/core/src/panic.rs:LL:COL
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
2021-06-15 23:16:10 +00:00
|
|
|
::: $DIR/const-unwrap.rs:9:18
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
|
|
|
LL | const BAR: i32 = Option::<i32>::None.unwrap();
|
2021-06-15 23:16:10 +00:00
|
|
|
| ---------------------------- inside `BAR` at $DIR/const-unwrap.rs:9:18
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2021-05-26 01:54:59 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|