fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0391]: cycle detected when processing `Foo::T` 2 --> $DIR/issue-34373.rs:7:30 3 | 4LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>; 5 | ^^^^^^^^^^ 6 | 7note: ...which requires processing `DefaultFoo`... 8 --> $DIR/issue-34373.rs:8:19 9 | 10LL | type DefaultFoo = Foo; 11 | ^^^ 12 = note: ...which again requires processing `Foo::T`, completing the cycle 13note: cycle used when collecting item types in top-level module 14 --> $DIR/issue-34373.rs:1:1 15 | 16LL | / #![allow(warnings)] 17LL | | 18LL | | trait Trait<T> { 19LL | | fn foo(_: T) {} 20... | 21LL | | fn main() { 22LL | | } 23 | |_^ 24 25error: aborting due to previous error 26 27For more information about this error, try `rustc --explain E0391`.