File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/test/ui/generic-associated-types Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
22 --> $DIR/projection-bound-cycle-generic.rs:44:18
33 |
4- LL | struct OnlySized<T> where T : Sized { f: T }
5- | - required by this bound in `OnlySized `
4+ LL | type Item : Sized where <Self as Foo>::Item: Sized;
5+ | ----- required by this bound in `Foo::Item `
66...
77LL | type Assoc = OnlySized<<T as Foo>::Item>;
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
22 --> $DIR/projection-bound-cycle.rs:46:18
33 |
4- LL | struct OnlySized<T> where T : Sized { f: T }
5- | - required by this bound in `OnlySized `
4+ LL | type Item : Sized where <Self as Foo>::Item: Sized;
5+ | ----- required by this bound in `Foo::Item `
66...
77LL | type Assoc = OnlySized<<T as Foo>::Item>;
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments