summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/str-as-char.fixed
blob: 09f3dec5a17554837b696b10f8da0f2a2776b9c1 (plain)
1
2
3
4
5
6
7
8
// When a char literal is used where a str should be,
// suggest changing to double quotes.

// run-rustfix

fn main() {
    let _: &str = "a"; //~ ERROR mismatched types
}