]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-34373.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-34373.stderr
1 error[E0391]: cycle detected when computing type of `Foo::T`
2 --> $DIR/issue-34373.rs:7:30
3 |
4 LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;
5 | ^^^^^^^^^^
6 |
7 note: ...which requires expanding type alias `DefaultFoo`...
8 --> $DIR/issue-34373.rs:8:19
9 |
10 LL | type DefaultFoo = Foo;
11 | ^^^
12 = note: ...which again requires computing type of `Foo::T`, completing the cycle
13 note: cycle used when collecting item types in top-level module
14 --> $DIR/issue-34373.rs:1:1
15 |
16 LL | / #![allow(warnings)]
17 LL | |
18 LL | | trait Trait<T> {
19 LL | | fn foo(_: T) {}
20 ... |
21 LL | | fn main() {
22 LL | | }
23 | |_^
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0391`.