]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/wrong-escape-of-curly-braces.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }