diff options
Diffstat (limited to 'tests/ui/issues/issue-3008-3.rs')
-rw-r--r-- | tests/ui/issues/issue-3008-3.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-3008-3.rs b/tests/ui/issues/issue-3008-3.rs new file mode 100644 index 000000000..212eb2eb8 --- /dev/null +++ b/tests/ui/issues/issue-3008-3.rs @@ -0,0 +1,10 @@ +use std::marker; + +enum E1 { V1(E2<E1>), } +enum E2<T> { V2(E2<E1>, marker::PhantomData<T>), } +//~^ ERROR recursive type `E2` has infinite size + +impl E1 { fn foo(&self) {} } + +fn main() { +} |