2019-09-25 20:18:25 -04:00
|
|
|
#![allow(unused)]
|
|
|
|
|
fn main() {
|
|
|
|
|
let _foo = b'hello\0';
|
|
|
|
|
//~^ ERROR character literal may only contain one codepoint
|
|
|
|
|
//~| HELP if you meant to write a byte string literal, use double quotes
|
|
|
|
|
let _bar = 'hello';
|
|
|
|
|
//~^ ERROR character literal may only contain one codepoint
|
2024-03-13 23:52:04 +00:00
|
|
|
//~| HELP if you meant to write a string literal, use double quotes
|
2019-09-25 20:18:25 -04:00
|
|
|
}
|