summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3008-1.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-3008-1.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3008-1.rs b/src/test/ui/issues/issue-3008-1.rs
new file mode 100644
index 000000000..1124969e6
--- /dev/null
+++ b/src/test/ui/issues/issue-3008-1.rs
@@ -0,0 +1,12 @@
+enum Foo {
+ Foo_(Bar)
+}
+
+enum Bar {
+ //~^ ERROR recursive type `Bar` has infinite size
+ BarNone,
+ BarSome(Bar)
+}
+
+fn main() {
+}