rust/tests/ui/consts/const-eval/const_panic_stability.e2021.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
314 B
Plaintext
Raw Normal View History

2021-11-07 23:55:00 -06:00
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