rust/src/test/ui/issues/issue-16338.rs
2018-12-25 21:08:33 -07:00

11 lines
182 B
Rust

struct Slice<T> {
data: *const T,
len: usize,
}
fn main() {
let Slice { data: data, len: len } = "foo";
//~^ ERROR mismatched types
//~| found type `Slice<_>`
}