summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/const_panic_stability.e2021.stderr
blob: 9e8179181fd09cd4b1cc53e248c47b27a70876c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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