summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-57271.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-57271.rs')
-rw-r--r--tests/ui/issues/issue-57271.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-57271.rs b/tests/ui/issues/issue-57271.rs
new file mode 100644
index 000000000..f74222e3e
--- /dev/null
+++ b/tests/ui/issues/issue-57271.rs
@@ -0,0 +1,24 @@
+// aux-build:issue-57271-lib.rs
+
+extern crate issue_57271_lib;
+
+use issue_57271_lib::BaseType;
+
+pub enum ObjectType { //~ ERROR recursive types `ObjectType` and `TypeSignature` have infinite size
+ Class(ClassTypeSignature),
+ Array(TypeSignature),
+ TypeVariable(()),
+}
+
+pub struct ClassTypeSignature {
+ pub package: (),
+ pub class: (),
+ pub inner: (),
+}
+
+pub enum TypeSignature {
+ Base(BaseType),
+ Object(ObjectType),
+}
+
+fn main() {}