2021-06-15 23:16:10 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2024-10-01 21:11:48 +00:00
|
|
|
--> $DIR/const-unwrap.rs:6:18
|
2020-07-30 19:32:20 +00:00
|
|
|
|
|
|
|
|
LL | const BAR: i32 = Option::<i32>::None.unwrap();
|
2024-10-01 21:11:48 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:6:38
|
2020-07-30 19:32:20 +00:00
|
|
|
|
2024-10-01 21:11:48 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-unwrap.rs:10:18
|
|
|
|
|
|
|
|
|
LL | const BAZ: i32 = Option::<i32>::None.expect("absolutely not!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'absolutely not!', $DIR/const-unwrap.rs:10:38
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
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`.
|