rust/src/test/ui/resolve/tuple-struct-alias.rs
2018-12-25 21:08:33 -07:00

10 lines
175 B
Rust

struct S(u8, u16);
type A = S;
fn main() {
let s = A(0, 1); //~ ERROR expected function
match s {
A(..) => {} //~ ERROR expected tuple struct/variant
}
}