summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/char-as-str-multi.rs
blob: c29a15025a9c29d27c802af015d131b03c2187c7 (plain)
1
2
3
4
5
6
7
// When a MULTI/NO-character string literal is used where a char should be,
// DO NOT suggest changing to single quotes.

fn main() {
    let _: char = "foo"; //~ ERROR mismatched types
    let _: char = ""; //~ ERROR mismatched types
}