diff options
Diffstat (limited to 'tests/ui/resolve/tuple-struct-alias.rs')
| -rw-r--r-- | tests/ui/resolve/tuple-struct-alias.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/tuple-struct-alias.rs b/tests/ui/resolve/tuple-struct-alias.rs new file mode 100644 index 00000000000..298e7e47998 --- /dev/null +++ b/tests/ui/resolve/tuple-struct-alias.rs @@ -0,0 +1,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 + } +} |
