]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-85907.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / consts / const-eval / issue-85907.stderr
1 error: argument to `panic!()` in a const context must have type `&str`
2   --> $DIR/issue-85907.rs:2:5
3    |
4 LL |     panic!(123);
5    |     ^^^^^^^^^^^
6    |
7    = 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)
8
9 error: aborting due to previous error
10