]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/projection-bound-cycle-generic.stderr
Rollup merge of #101741 - andrewpollack:add-needs-unwind-ui-tests, r=tmandry
[rust.git] / src / test / ui / generic-associated-types / projection-bound-cycle-generic.stderr
1 error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
2   --> $DIR/projection-bound-cycle-generic.rs:42: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-generic.rs:26: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`.