2018-07-15 14:11:54 -07:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-16338.rs:7:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
LL | let Slice { data: data, len: len } = "foo";
|
2019-12-30 09:08:18 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----- this expression has type `&str`
|
2019-12-30 08:17:32 +01:00
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `str`, found `Slice<_>`
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
= note: expected type `str`
|
2019-11-13 14:16:56 -08:00
|
|
|
found struct `Slice<_>`
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|