]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/wrong-escape-of-curly-braces.stderr
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / ui / parser / wrong-escape-of-curly-braces.stderr
1 error: unknown character escape: `{`
2   --> $DIR/wrong-escape-of-curly-braces.rs:3:17
3    |
4 LL |     let bad = "\{it is wrong\}";
5    |                 ^ unknown character escape
6    |
7    = help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
8
9 error: unknown character escape: `}`
10   --> $DIR/wrong-escape-of-curly-braces.rs:3:30
11    |
12 LL |     let bad = "\{it is wrong\}";
13    |                              ^ unknown character escape
14    |
15    = help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
16
17 error: aborting due to 2 previous errors
18