2022-01-01 15:32:04 -06:00
|
|
|
// When a char literal is used where a str should be,
|
|
|
|
// suggest changing to double quotes.
|
|
|
|
|
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
fn main() {
|
2022-10-21 20:37:20 -05:00
|
|
|
let _: &str = "a"; //~ ERROR mismatched types
|
|
|
|
let _: &str = "\"\"\""; //~ ERROR character literal may only contain one codepoint
|
|
|
|
let _: &str = "\"\"\""; //~ ERROR character literal may only contain one codepoint
|
2022-01-01 15:32:04 -06:00
|
|
|
}
|