2019-04-25 03:48:25 -05:00
|
|
|
fn main() {
|
|
|
|
let _: char = '';
|
|
|
|
//~^ ERROR: empty character literal
|
|
|
|
let _: char = '\u{}';
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR: empty unicode escape
|
2019-04-25 03:48:25 -05:00
|
|
|
|
|
|
|
// Next two are OK, but may befool error recovery
|
|
|
|
let _ = '/';
|
|
|
|
let _ = b'/';
|
|
|
|
|
|
|
|
let _ = ' hello // here's a comment
|
|
|
|
//~^ ERROR: unterminated character literal
|
|
|
|
}
|