2019-01-06 18:33:05 +03:00
|
|
|
fn main() {
|
2015-04-13 15:56:10 +02:00
|
|
|
let ok = "{{everything fine}}";
|
|
|
|
let bad = "\{it is wrong\}";
|
2021-01-23 12:48:31 -08:00
|
|
|
//~^ ERROR unknown character escape: `{`
|
|
|
|
//~| HELP if used in a formatting string, curly braces are escaped with `{{` and `}}`
|
|
|
|
//~| ERROR unknown character escape: `}`
|
|
|
|
//~| HELP if used in a formatting string, curly braces are escaped with `{{` and `}}`
|
2015-04-13 15:56:10 +02:00
|
|
|
}
|