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

27 lines
770 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: unknown character escape: {
--> $DIR/wrong-escape-of-curly-braces.rs:3:17
2018-10-20 15:36:17 -05:00
|
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
2018-10-20 15:36:17 -05:00
|
LL | let bad = "/{it is wrong/}";
| ^
error: unknown character escape: }
--> $DIR/wrong-escape-of-curly-braces.rs:3:30
2018-10-20 15:36:17 -05:00
|
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
2018-10-20 15:36:17 -05:00
|
LL | let bad = "/{it is wrong/}";
| ^
error: aborting due to 2 previous errors
2018-10-20 15:36:17 -05:00