2022-01-01 15:32:04 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/char-as-str-multi.rs:5:19
|
|
|
|
|
|
|
|
|
LL | let _: char = "foo";
|
|
|
|
| ---- ^^^^^ expected `char`, found `&str`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
2022-01-10 01:35:54 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/char-as-str-multi.rs:6:19
|
|
|
|
|
|
|
|
|
LL | let _: char = "";
|
|
|
|
| ---- ^^ expected `char`, found `&str`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2022-01-01 15:32:04 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|