1 error: character literal may only contain one codepoint
2 --> $DIR/str-as-char.rs:8:19
4 LL | let _: &str = '"""';
7 help: if you meant to write a `str` literal, use double quotes
9 LL | let _: &str = "\"\"\"";
12 error: character literal may only contain one codepoint
13 --> $DIR/str-as-char.rs:9:19
15 LL | let _: &str = '\"\"\"';
18 help: if you meant to write a `str` literal, use double quotes
20 LL | let _: &str = "\"\"\"";
23 error[E0308]: mismatched types
24 --> $DIR/str-as-char.rs:7:19
26 LL | let _: &str = 'a';
27 | ---- ^^^ expected `&str`, found `char`
29 | expected due to this
31 help: if you meant to write a `str` literal, use double quotes
33 LL | let _: &str = "a";
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0308`.