]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/wrong-escape-of-curly-braces.rs
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[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 }