rust/tests/ui/lexer/lex-bad-char-literals-5.rs

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

8 lines
201 B
Rust
Raw Normal View History

2019-01-20 05:53:28 +00:00
static c: char = '\x10\x10';
//~^ ERROR: character literal may only contain one codepoint
2019-01-17 20:24:17 +00:00
fn main() {
2019-01-20 05:53:28 +00:00
let ch: &str = '\x10\x10';
//~^ ERROR: character literal may only contain one codepoint
2019-01-17 20:24:17 +00:00
}