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

16 lines
316 B
Rust

struct Slice<T> {
data: *const T,
len: usize,
}
fn main() {
match () {
Slice { data: data, len: len } => (),
//~^ ERROR mismatched types
//~| expected type `()`
//~| found type `Slice<_>`
//~| expected (), found struct `Slice`
_ => unreachable!()
}
}