diff options
Diffstat (limited to 'tests/ui/consts/const-eval/issue-85907.stderr')
-rw-r--r-- | tests/ui/consts/const-eval/issue-85907.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/issue-85907.stderr b/tests/ui/consts/const-eval/issue-85907.stderr new file mode 100644 index 000000000..fd7b40572 --- /dev/null +++ b/tests/ui/consts/const-eval/issue-85907.stderr @@ -0,0 +1,10 @@ +error: argument to `panic!()` in a const context must have type `&str` + --> $DIR/issue-85907.rs:2:5 + | +LL | panic!(123); + | ^^^^^^^^^^^ + | + = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to previous error + |