]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-85907.stderr
Rollup merge of #95005 - ssomers:btree_static_assert, r=thomcc
[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