rust/tests/ui/parser/wrong-escape-of-curly-braces.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
593 B
Plaintext
Raw Normal View History

error: unknown character escape: `{`
--> $DIR/wrong-escape-of-curly-braces.rs:3:17
2018-10-20 20:36:17 +00:00
|
LL | let bad = "\{it is wrong\}";
| ^ unknown character escape
2018-10-20 20:36:17 +00:00
|
= help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
2018-10-20 20:36:17 +00:00
error: unknown character escape: `}`
--> $DIR/wrong-escape-of-curly-braces.rs:3:30
2018-10-20 20:36:17 +00:00
|
LL | let bad = "\{it is wrong\}";
| ^ unknown character escape
2018-10-20 20:36:17 +00:00
|
= help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
2018-10-20 20:36:17 +00:00
error: aborting due to 2 previous errors
2018-10-20 20:36:17 +00:00