summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3008-3.rs
blob: 212eb2eb8e06f2a32adaf8b64f9d0d0e26f1bdd7 (plain)
1
2
3
4
5
6
7
8
9
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() {
}