mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
14 lines
317 B
Rust
14 lines
317 B
Rust
fn main() {
|
|
let _: char = '';
|
|
//~^ ERROR: empty character literal
|
|
let _: char = '\u{}';
|
|
//~^ ERROR: empty unicode escape
|
|
|
|
// Next two are OK, but may befool error recovery
|
|
let _ = '/';
|
|
let _ = b'/';
|
|
|
|
let _ = ' hello // here's a comment
|
|
//~^ ERROR: unterminated character literal
|
|
}
|