summary refs log tree commit diff
path: root/src/test/ui/fmt/format-string-error.stderr
blob: 58b392f0b8d658fc1df9896a3568b05b9338bf23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: invalid format string: expected `'}'` but string was terminated
  --> $DIR/format-string-error.rs:12:5
   |
12 |     println!("{");
   |     ^^^^^^^^^^^^^^
   |
   = note: if you intended to print `{`, you can escape it using `{{`
   = note: this error originates in a macro outside of the current crate

error: invalid format string: unmatched `}` found
  --> $DIR/format-string-error.rs:14:5
   |
14 |     println!("}");
   |     ^^^^^^^^^^^^^^
   |
   = note: if you intended to print `}`, you can escape it using `}}`
   = note: this error originates in a macro outside of the current crate

error: aborting due to 2 previous errors