@@ -16,15 +16,6 @@ LL | type B<'a, 'b> where 'a: 'b;
1616LL | type B<'a, 'b> where 'b: 'a = (&'a(), &'b ());
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found
1818
19- error[E0276]: impl has stricter requirements than trait
20- --> $DIR/impl_bounds.rs:17:5
21- |
22- LL | type B<'a, 'b> where 'a: 'b;
23- | ---------------------------- definition of `B` from trait
24- ...
25- LL | type B<'a, 'b> where 'b: 'a = (&'a(), &'b ());
26- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `'b: 'a`
27-
2819error[E0478]: lifetime bound not satisfied
2920 --> $DIR/impl_bounds.rs:17:5
3021 |
@@ -43,7 +34,7 @@ LL | type B<'a, 'b> where 'b: 'a = (&'a(), &'b ());
4334 | ^^
4435
4536error[E0277]: the trait bound `T: Copy` is not satisfied
46- --> $DIR/impl_bounds.rs:21 :5
37+ --> $DIR/impl_bounds.rs:20 :5
4738 |
4839LL | type C where Self: Copy = String;
4940 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
@@ -68,7 +59,7 @@ LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
6859 | +++++++++++++++++++
6960
7061error[E0277]: the trait bound `T: Copy` is not satisfied
71- --> $DIR/impl_bounds.rs:23 :5
62+ --> $DIR/impl_bounds.rs:22 :5
7263 |
7364LL | fn d() where Self: Copy {}
7465 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
@@ -92,7 +83,7 @@ help: consider restricting type parameter `T`
9283LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
9384 | +++++++++++++++++++
9485
95- error: aborting due to 6 previous errors
86+ error: aborting due to 5 previous errors
9687
97- Some errors have detailed explanations: E0276, E0277, E0310, E0478.
98- For more information about an error, try `rustc --explain E0276 `.
88+ Some errors have detailed explanations: E0277, E0310, E0478.
89+ For more information about an error, try `rustc --explain E0277 `.
0 commit comments