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

8 lines
197 B
Rust
Raw Normal View History

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