Skip to content

Commit 54d4fc2

Browse files
committed
Bless test
1 parent 1fa712d commit 54d4fc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/ui/generic-associated-types/projection-bound-cycle-generic.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[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
...
77
LL | type Assoc = OnlySized<<T as Foo>::Item>;
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/test/ui/generic-associated-types/projection-bound-cycle.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[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
...
77
LL | type Assoc = OnlySized<<T as Foo>::Item>;
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)