summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/tuple-struct-alias.rs
blob: 298e7e479983d4b95a82d0a2e8d01ed43cf82e6f (plain)
1
2
3
4
5
6
7
8
9
struct S(u8, u16);
type A = S;

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