summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-unwrap.stderr
blob: d2cbe4550f4bbd73d87de07cfb47297b6d80001c (plain)
1
2
3
4
5
6
7
8
9
error[E0080]: evaluation of constant value failed
  --> $DIR/const-unwrap.rs:7:18
   |
LL | const BAR: i32 = Option::<i32>::None.unwrap();
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'called `Option::unwrap()` on a `None` value', $DIR/const-unwrap.rs:7:38

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.