rust/tests/ui/parser/wrong-escape-of-curly-braces.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
355 B
Rust
Raw Normal View History

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 `}}`
}