summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/const_panic_track_caller.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-eval/const_panic_track_caller.stderr')
-rw-r--r--tests/ui/consts/const-eval/const_panic_track_caller.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/const_panic_track_caller.stderr b/tests/ui/consts/const-eval/const_panic_track_caller.stderr
new file mode 100644
index 000000000..846458176
--- /dev/null
+++ b/tests/ui/consts/const-eval/const_panic_track_caller.stderr
@@ -0,0 +1,20 @@
+error[E0080]: evaluation of constant value failed
+ --> $DIR/const_panic_track_caller.rs:15:5
+ |
+LL | b()
+ | ^^^ the evaluated program panicked at 'hey', $DIR/const_panic_track_caller.rs:15:5
+ |
+note: inside `c`
+ --> $DIR/const_panic_track_caller.rs:15:5
+ |
+LL | b()
+ | ^^^
+note: inside `X`
+ --> $DIR/const_panic_track_caller.rs:21:16
+ |
+LL | const X: u32 = c();
+ | ^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0080`.