1 2 3 4 5 6 7 8 9 10
struct Slice<T> { data: *const T, len: usize, } fn main() { let Slice { data: data, len: len } = "foo"; //~^ ERROR mismatched types //~| found struct `Slice<_>` }