summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16338.rs
blob: 321b3576cd61f00eb7ed7e158d6b1551904694ae (plain)
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<_>`
}