]>
Commit | Line | Data |
---|---|---|
ea8adc8c | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/lit.rs:7:13 |
ea8adc8c | 3 | | |
532ac7d7 | 4 | LL | "abc" => true, |
60c5eb7d | 5 | | ^^^^^ expected `&str`, found `str` |
ea8adc8c | 6 | | |
60c5eb7d XL |
7 | = note: expected type `&&str` |
8 | found reference `&'static str` | |
ea8adc8c XL |
9 | |
10 | error[E0308]: mismatched types | |
0731742a | 11 | --> $DIR/lit.rs:16:9 |
ea8adc8c | 12 | | |
532ac7d7 | 13 | LL | b"abc" => true, |
60c5eb7d | 14 | | ^^^^^^ expected `&[u8]`, found array `[u8; 3]` |
ea8adc8c | 15 | | |
60c5eb7d XL |
16 | = note: expected type `&&[u8]` |
17 | found reference `&'static [u8; 3]` | |
ea8adc8c XL |
18 | |
19 | error: aborting due to 2 previous errors | |
20 | ||
0531ce1d | 21 | For more information about this error, try `rustc --explain E0308`. |