2016-11-30 16:35:25 -06:00
|
|
|
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
|
2016-11-30 16:35:25 -06:00
|
|
|
match s {
|
2019-10-14 19:20:50 -05:00
|
|
|
A(..) => {} //~ ERROR expected tuple struct or tuple variant
|
2016-11-30 16:35:25 -06:00
|
|
|
}
|
2016-08-03 18:51:52 -05:00
|
|
|
}
|