mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
14 lines
314 B
Plaintext
14 lines
314 B
Plaintext
error: format argument must be a string literal
|
|
--> $DIR/const_panic_stability.rs:14:12
|
|
|
|
|
LL | panic!({ "foo" });
|
|
| ^^^^^^^^^
|
|
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
LL | panic!("{}", { "foo" });
|
|
| +++++
|
|
|
|
error: aborting due to previous error
|
|
|