summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/tuple-struct-alias.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/resolve/tuple-struct-alias.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/resolve/tuple-struct-alias.rs b/src/test/ui/resolve/tuple-struct-alias.rs
new file mode 100644
index 000000000..298e7e479
--- /dev/null
+++ b/src/test/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
+ }
+}