2016-12-01 01:35:25 +03:00
|
|
|
struct S(u8, u16);
|
|
|
|
type A = S;
|
|
|
|
|
2016-08-04 01:51:52 +02:00
|
|
|
fn main() {
|
2017-11-20 13:13:27 +01:00
|
|
|
let s = A(0, 1); //~ ERROR expected function
|
2016-12-01 01:35:25 +03:00
|
|
|
match s {
|
2019-10-14 17:20:50 -07:00
|
|
|
A(..) => {} //~ ERROR expected tuple struct or tuple variant
|
2016-12-01 01:35:25 +03:00
|
|
|
}
|
2016-08-04 01:51:52 +02:00
|
|
|
}
|