]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/tuple-struct-alias.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / tuple-struct-alias.rs
1 struct S(u8, u16);
2 type A = S;
3
4 fn main() {
5     let s = A(0, 1); //~ ERROR expected function
6     match s {
7         A(..) => {} //~ ERROR expected tuple struct or tuple variant
8     }
9 }