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