]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-85907.stderr
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[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