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