blob: 2db51ea6042aa533d2caaa6cb5b6978094bb4072 (
plain)
1
2
3
4
5
6
7
8
9
|
#![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
//~| HELP if you meant to write a `str` literal, use double quotes
}
|