]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/inference/char-as-str-single.rs
1 // When a SINGLE-character string literal is used where a char should be,
2 // suggest changing to single quotes.
4 // Testing both single-byte and multi-byte characters, as we should handle both.
9 let _
: char = "a"; //~ ERROR mismatched types
10 let _
: char = "人"; //~ ERROR mismatched types
11 let _
: char = "'"; //~ ERROR mismatched types