fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/char-as-str-single.rs:9:19 3 | 4LL | let _: char = "a"; 5 | ---- ^^^ expected `char`, found `&str` 6 | | 7 | expected due to this 8 | 9help: if you meant to write a `char` literal, use single quotes 10 | 11LL | let _: char = 'a'; 12 | ~~~ 13 14error[E0308]: mismatched types 15 --> $DIR/char-as-str-single.rs:10:19 16 | 17LL | let _: char = "人"; 18 | ---- ^^^^ expected `char`, found `&str` 19 | | 20 | expected due to this 21 | 22help: if you meant to write a `char` literal, use single quotes 23 | 24LL | let _: char = '人'; 25 | ~~~~ 26 27error[E0308]: mismatched types 28 --> $DIR/char-as-str-single.rs:11:19 29 | 30LL | let _: char = "'"; 31 | ---- ^^^ expected `char`, found `&str` 32 | | 33 | expected due to this 34 | 35help: if you meant to write a `char` literal, use single quotes 36 | 37LL | let _: char = '\''; 38 | ~~~~ 39 40error[E0308]: mismatched types 41 --> $DIR/char-as-str-single.rs:18:9 42 | 43LL | match c { 44 | - this expression has type `char` 45LL | "A" => {} 46 | ^^^ expected `char`, found `&str` 47 | 48help: if you meant to write a `char` literal, use single quotes 49 | 50LL | 'A' => {} 51 | ~~~ 52 53error: aborting due to 4 previous errors 54 55For more information about this error, try `rustc --explain E0308`.