2021-06-15 23:16:10 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2021-07-09 13:21:58 +00:00
|
|
|
--> $DIR/const-unwrap.rs:7:18
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
|
|
|
LL | const BAR: i32 = Option::<i32>::None.unwrap();
|
2021-07-09 13:21:58 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:7:38
|
2020-07-30 19:32:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-07-30 19:32:20 +00:00
|
|
|
|
2021-05-26 01:54:59 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|