1 error[E0308]: mismatched types
2 --> $DIR/char-as-str-single.rs:9:19
4 LL | let _: char = "a";
5 | ---- ^^^ expected `char`, found `&str`
9 help: if you meant to write a `char` literal, use single quotes
11 LL | let _: char = 'a';
14 error[E0308]: mismatched types
15 --> $DIR/char-as-str-single.rs:10:19
17 LL | let _: char = "人";
18 | ---- ^^^^ expected `char`, found `&str`
20 | expected due to this
22 help: if you meant to write a `char` literal, use single quotes
24 LL | let _: char = '人';
27 error[E0308]: mismatched types
28 --> $DIR/char-as-str-single.rs:11:19
30 LL | let _: char = "'";
31 | ---- ^^^ expected `char`, found `&str`
33 | expected due to this
35 help: if you meant to write a `char` literal, use single quotes
37 LL | let _: char = '\'';
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0308`.