1 warning: panic message is not a string literal
2 --> $DIR/const_panic_stability.rs:14:12
4 LL | panic!({ "foo" });
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
12 LL | panic!("{}", { "foo" });
15 warning: 1 warning emitted