summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/closing-brace-as-fill.stderr
blob: 70068fa3aadc4c7506971f8ef0f79ea5af55fdd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: invalid format string: expected `'}'` but string was terminated
  --> $DIR/closing-brace-as-fill.rs:6:35
   |
LL |     println!("Hello, world! {0:}<3", 2);
   |                                -  ^ expected `'}'` in format string
   |                                |
   |                                this is not interpreted as a formatting closing brace
   |
   = note: the character `'}'` is interpreted as a fill character because of the `:` that precedes it

error: aborting due to 1 previous error