1 error: character literal may only contain one codepoint
2 --> $DIR/lex-bad-char-literals-6.rs:2:19
4 LL | let x: &str = 'ab';
7 help: if you meant to write a `str` literal, use double quotes
9 LL | let x: &str = "ab";
12 error: character literal may only contain one codepoint
13 --> $DIR/lex-bad-char-literals-6.rs:4:19
15 LL | let y: char = 'cd';
18 help: if you meant to write a `str` literal, use double quotes
20 LL | let y: char = "cd";
23 error: character literal may only contain one codepoint
24 --> $DIR/lex-bad-char-literals-6.rs:6:13
29 help: if you meant to write a `str` literal, use double quotes
34 error[E0277]: can't compare `&str` with `char`
35 --> $DIR/lex-bad-char-literals-6.rs:9:10
38 | ^^ no implementation for `&str == char`
40 = help: the trait `PartialEq<char>` is not implemented for `&str`
42 error[E0308]: mismatched types
43 --> $DIR/lex-bad-char-literals-6.rs:15:20
45 LL | let a: usize = "";
46 | ----- ^^ expected `usize`, found `&str`
48 | expected due to this
50 error[E0277]: can't compare `&str` with `char`
51 --> $DIR/lex-bad-char-literals-6.rs:12:10
54 | ^^ no implementation for `&str == char`
56 = help: the trait `PartialEq<char>` is not implemented for `&str`
58 error: aborting due to 6 previous errors
60 Some errors have detailed explanations: E0277, E0308.
61 For more information about an error, try `rustc --explain E0277`.