]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/const_panic_stability.e2018.stderr
During MirBorrowck, ignore ConstEvalCounter
[rust.git] / tests / ui / consts / const-eval / const_panic_stability.e2018.stderr
1 warning: panic message is not a string literal
2   --> $DIR/const_panic_stability.rs:14:12
3    |
4 LL |     panic!({ "foo" });
5    |            ^^^^^^^^^
6    |
7    = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
8    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
9    = note: `#[warn(non_fmt_panics)]` on by default
10 help: add a "{}" format string to `Display` the message
11    |
12 LL |     panic!("{}", { "foo" });
13    |            +++++
14
15 warning: 1 warning emitted
16