rust/src/test/ui/resolve/tuple-struct-alias.rs

10 lines
175 B
Rust
Raw Normal View History

struct S(u8, u16);
type A = S;
2016-08-03 18:51:52 -05:00
fn main() {
2017-11-20 06:13:27 -06:00
let s = A(0, 1); //~ ERROR expected function
match s {
2017-11-20 06:13:27 -06:00
A(..) => {} //~ ERROR expected tuple struct/variant
}
2016-08-03 18:51:52 -05:00
}