summary refs log tree commit diff
path: root/src/test/ui/parser/wrong-escape-of-curly-braces.stderr
blob: 90debfc337d8302c09c281fd165119b9c639f552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: unknown character escape: {
  --> $DIR/wrong-escape-of-curly-braces.rs:3:17
   |
LL |     let bad = "/{it is wrong/}";
   |                 ^
   |
help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
  --> $DIR/wrong-escape-of-curly-braces.rs:3:17
   |
LL |     let bad = "/{it is wrong/}";
   |                 ^

error: unknown character escape: }
  --> $DIR/wrong-escape-of-curly-braces.rs:3:30
   |
LL |     let bad = "/{it is wrong/}";
   |                              ^
   |
help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
  --> $DIR/wrong-escape-of-curly-braces.rs:3:30
   |
LL |     let bad = "/{it is wrong/}";
   |                              ^

error: aborting due to 2 previous errors