]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / 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: `#[warn(non_fmt_panics)]` on by default
8 = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
9 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
10 help: add a "{}" format string to `Display` the message
11 |
12 LL | panic!("{}", { "foo" });
13 | +++++
14
15 warning: 1 warning emitted
16