1 error[E0308]: mismatched types
2 --> $DIR/issue-16338.rs:7:9
4 LL | let Slice { data: data, len: len } = "foo";
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----- this expression has type `&str`
7 | expected `str`, found struct `Slice`
9 = note: expected type `str`
10 found struct `Slice<_>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.