about summary refs log tree commit diff
path: root/tests/ui/tuple/tuple-struct-fields/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/tuple/tuple-struct-fields/test.rs')
-rw-r--r--tests/ui/tuple/tuple-struct-fields/test.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/tuple/tuple-struct-fields/test.rs b/tests/ui/tuple/tuple-struct-fields/test.rs
new file mode 100644
index 00000000000..00677090d78
--- /dev/null
+++ b/tests/ui/tuple/tuple-struct-fields/test.rs
@@ -0,0 +1,9 @@
+mod foo {
+    type T = ();
+    struct S1(pub(in foo) (), pub(T), pub(crate) (), pub(((), T)));
+    struct S2(pub((foo)) ());
+    //~^ ERROR expected one of `)` or `,`, found `(`
+    //~| ERROR cannot find type `foo` in this scope
+}
+
+fn main() {}