summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34373.rs
blob: ca24e37d9bb11b4b5d2027cc0dd1991a5583af6f (plain)
1
2
3
4
5
6
7
8
9
10
11
#![allow(warnings)]

trait Trait<T> {
    fn foo(_: T) {}
}

pub struct Foo<T = Box<Trait<DefaultFoo>>>;  //~ ERROR cycle detected
type DefaultFoo = Foo;

fn main() {
}