diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-34373.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-34373.rs b/src/test/ui/issues/issue-34373.rs new file mode 100644 index 000000000..ca24e37d9 --- /dev/null +++ b/src/test/ui/issues/issue-34373.rs @@ -0,0 +1,11 @@ +#![allow(warnings)] + +trait Trait<T> { + fn foo(_: T) {} +} + +pub struct Foo<T = Box<Trait<DefaultFoo>>>; //~ ERROR cycle detected +type DefaultFoo = Foo; + +fn main() { +} |