2017-10-06 15:30:23 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lit.rs:7:13
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
2020-02-24 21:10:58 -06:00
|
|
|
LL | match &s {
|
|
|
|
| -- this expression has type `&&str`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | "abc" => true,
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^ expected `&str`, found `str`
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected type `&&str`
|
|
|
|
found reference `&'static str`
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lit.rs:16:9
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
2020-02-24 21:10:58 -06:00
|
|
|
LL | match &s {
|
|
|
|
| -- this expression has type `&&[u8]`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b"abc" => true,
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^ expected `&[u8]`, found array `[u8; 3]`
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected type `&&[u8]`
|
|
|
|
found reference `&'static [u8; 3]`
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|