]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-85907.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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