2018-10-20 15:36:17 -05:00
|
|
|
error: unknown character escape: {
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/wrong-escape-of-curly-braces.rs:3:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let bad = "\{it is wrong\}";
|
2019-03-20 13:45:25 -05:00
|
|
|
| ^ unknown character escape
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-20 13:45:25 -05:00
|
|
|
= help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: unknown character escape: }
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/wrong-escape-of-curly-braces.rs:3:30
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | let bad = "\{it is wrong\}";
|
2019-03-20 13:45:25 -05:00
|
|
|
| ^ unknown character escape
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-20 13:45:25 -05:00
|
|
|
= help: if used in a formatting string, curly braces are escaped with `{{` and `}}`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2018-10-20 16:38:23 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|