1 error[E0308]: mismatched types
2 --> $DIR/str-as-char.rs:7:19
4 LL | let _: &str = 'a';
5 | ---- ^^^ expected `&str`, found `char`
9 help: if you meant to write a `str` literal, use double quotes
11 LL | let _: &str = "a";
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0308`.