summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-unwrap.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-unwrap.stderr')
-rw-r--r--tests/ui/consts/const-unwrap.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-unwrap.stderr b/tests/ui/consts/const-unwrap.stderr
new file mode 100644
index 000000000..d2cbe4550
--- /dev/null
+++ b/tests/ui/consts/const-unwrap.stderr
@@ -0,0 +1,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`.