fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: character literal may only contain one codepoint 2 --> $DIR/lex-bad-char-literals-6.rs:2:19 3 | 4LL | let x: &str = 'ab'; 5 | ^^^^ 6 | 7help: if you meant to write a `str` literal, use double quotes 8 | 9LL | let x: &str = "ab"; 10 | ^^^^ 11 12error: character literal may only contain one codepoint 13 --> $DIR/lex-bad-char-literals-6.rs:4:19 14 | 15LL | let y: char = 'cd'; 16 | ^^^^ 17 | 18help: if you meant to write a `str` literal, use double quotes 19 | 20LL | let y: char = "cd"; 21 | ^^^^ 22 23error: character literal may only contain one codepoint 24 --> $DIR/lex-bad-char-literals-6.rs:6:13 25 | 26LL | let z = 'ef'; 27 | ^^^^ 28 | 29help: if you meant to write a `str` literal, use double quotes 30 | 31LL | let z = "ef"; 32 | ^^^^ 33 34error[E0277]: can't compare `&str` with `char` 35 --> $DIR/lex-bad-char-literals-6.rs:9:10 36 | 37LL | if x == y {} 38 | ^^ no implementation for `&str == char` 39 | 40 = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str` 41 42error[E0308]: mismatched types 43 --> $DIR/lex-bad-char-literals-6.rs:15:20 44 | 45LL | let a: usize = ""; 46 | ^^ expected usize, found reference 47 | 48 = note: expected type `usize` 49 found type `&'static str` 50 51error[E0277]: can't compare `&str` with `char` 52 --> $DIR/lex-bad-char-literals-6.rs:12:10 53 | 54LL | if x == z {} 55 | ^^ no implementation for `&str == char` 56 | 57 = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str` 58 59error: aborting due to 6 previous errors 60 61Some errors have detailed explanations: E0277, E0308. 62For more information about an error, try `rustc --explain E0277`.