]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/wrong-escape-of-curly-braces.stderr
Auto merge of #51285 - Mark-Simulacrum:remove-quote_apis, r=Manishearth
[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    |                 ^
6    |
7 help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
8   --> $DIR/wrong-escape-of-curly-braces.rs:3:17
9    |
10 LL |     let bad = "/{it is wrong/}";
11    |                 ^
12
13 error: unknown character escape: }
14   --> $DIR/wrong-escape-of-curly-braces.rs:3:30
15    |
16 LL |     let bad = "/{it is wrong/}";
17    |                              ^
18    |
19 help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
20   --> $DIR/wrong-escape-of-curly-braces.rs:3:30
21    |
22 LL |     let bad = "/{it is wrong/}";
23    |                              ^
24
25 error: aborting due to 2 previous errors
26