2022-01-10 01:35:54 -06:00
|
|
|
// When a MULTI/NO-character string literal is used where a char should be,
|
2022-01-01 15:32:04 -06:00
|
|
|
// DO NOT suggest changing to single quotes.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: char = "foo"; //~ ERROR mismatched types
|
2022-01-10 01:35:54 -06:00
|
|
|
let _: char = ""; //~ ERROR mismatched types
|
2022-01-01 15:32:04 -06:00
|
|
|
}
|