fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
744 B27 linesraw
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`.