]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/wrong-escape-of-curly-braces.rs
Rollup merge of #81619 - SkiFire13:resultshunt-inplace, r=the8472
[rust.git] / src / test / ui / parser / wrong-escape-of-curly-braces.rs
1 fn main() {
2     let ok = "{{everything fine}}";
3     let bad = "\{it is wrong\}";
4     //~^  ERROR unknown character escape: `{`
5     //~|  HELP if used in a formatting string, curly braces are escaped with `{{` and `}}`
6     //~| ERROR unknown character escape: `}`
7     //~| HELP if used in a formatting string, curly braces are escaped with `{{` and `}}`
8 }