rust/tests/ui/parser/issues/issue-64732.rs
2024-03-17 23:35:18 +00:00

10 lines
360 B
Rust

#![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 string literal, use double quotes
}