fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when computing type of `Foo::T` 2 --> $DIR/issue-34373.rs:7:30 3 | 4LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>; 5 | ^^^^^^^^^^ 6 | 7note: ...which requires expanding type alias `DefaultFoo`... 8 --> $DIR/issue-34373.rs:8:19 9 | 10LL | type DefaultFoo = Foo; 11 | ^^^ 12 = note: ...which again requires computing type of `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 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 25 26error: aborting due to previous error 27 28For more information about this error, try `rustc --explain E0391`.