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