summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/wrong-escape-of-curly-braces.rs
blob: 8e5258acd49da9109df24506208dca04c543bf21 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let ok = "{{everything fine}}";
    let bad = "\{it is wrong\}";
    //~^  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 `}}`
}