]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/projection-bound-cycle.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / projection-bound-cycle.stderr
1 error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
2   --> $DIR/projection-bound-cycle.rs:46:18
3    |
4 LL |     type Assoc = OnlySized<<T as Foo>::Item>;
5    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: required by a bound in `OnlySized`
8   --> $DIR/projection-bound-cycle.rs:30:18
9    |
10 LL | struct OnlySized<T> where T: Sized { f: T }
11    |                  ^ required by this bound in `OnlySized`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0275`.