1 error[E0080]: evaluation of constant value failed
2 --> $SRC_DIR/core/src/option.rs:LL:COL
4 LL | None => panic!("called `Option::unwrap()` on a `None` value"),
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:9:38
8 | inside `Option::<i32>::unwrap` at $SRC_DIR/core/src/panic.rs:LL:COL
10 ::: $DIR/const-unwrap.rs:9:18
12 LL | const BAR: i32 = Option::<i32>::None.unwrap();
13 | ---------------------------- inside `BAR` at $DIR/const-unwrap.rs:9:18
15 = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0080`.