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';
6 help: if you meant to write a `str` literal, use double quotes
8 LL | let x: &str = "ab";
11 error: character literal may only contain one codepoint
12 --> $DIR/lex-bad-char-literals-6.rs:4:19
14 LL | let y: char = 'cd';
16 help: if you meant to write a `str` literal, use double quotes
18 LL | let y: char = "cd";
21 error: character literal may only contain one codepoint
22 --> $DIR/lex-bad-char-literals-6.rs:6:13
26 help: if you meant to write a `str` literal, use double quotes
31 error[E0277]: can't compare `&str` with `char`
32 --> $DIR/lex-bad-char-literals-6.rs:9:10
35 | ^^ no implementation for `&str == char`
37 = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str`
39 error[E0308]: mismatched types
40 --> $DIR/lex-bad-char-literals-6.rs:15:20
42 LL | let a: usize = "";
43 | ^^ expected usize, found reference
45 = note: expected type `usize`
46 found type `&'static str`
48 error[E0277]: can't compare `&str` with `char`
49 --> $DIR/lex-bad-char-literals-6.rs:12:10
52 | ^^ no implementation for `&str == char`
54 = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str`
56 error: aborting due to 6 previous errors
58 Some errors have detailed explanations: E0277, E0308.
59 For more information about an error, try `rustc --explain E0277`.