1error[E0308]: mismatched types 2 --> $DIR/lit.rs:7:13 3 | 4LL | match &s { 5 | -- this expression has type `&&str` 6LL | "abc" => true, 7 | ^^^^^ expected `&str`, found `str` 8 | 9 = note: expected type `&&str` 10 found reference `&'static str` 11 12error[E0308]: mismatched types 13 --> $DIR/lit.rs:16:9 14 | 15LL | match &s { 16 | -- this expression has type `&&[u8]` 17LL | b"abc" => true, 18 | ^^^^^^ expected `&[u8]`, found array `[u8; 3]` 19 | 20 = note: expected type `&&[u8]` 21 found reference `&'static [u8; 3]` 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0308`. 26