@@ -16,28 +16,8 @@ LL | type B<'a, 'b> where 'a: 'b;
1616LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
1717 | ^^ impl has extra requirement `'b: 'a`
1818
19- error[E0478]: lifetime bound not satisfied
20- --> $DIR/impl_bounds.rs:16:22
21- |
22- LL | type B<'a, 'b> where 'a: 'b;
23- | -------------- definition of `B` from trait
24- ...
25- LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
26- | ^^^^^^^^^^^^^^^ - help: try copying this clause from the trait: `, 'a: 'b`
27- |
28- note: lifetime parameter instantiated with the lifetime `'a` as defined here
29- --> $DIR/impl_bounds.rs:16:12
30- |
31- LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
32- | ^^
33- note: but lifetime parameter must outlive the lifetime `'b` as defined here
34- --> $DIR/impl_bounds.rs:16:16
35- |
36- LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
37- | ^^
38-
3919error[E0277]: the trait bound `T: Copy` is not satisfied
40- --> $DIR/impl_bounds.rs:19 :33
20+ --> $DIR/impl_bounds.rs:18 :33
4121 |
4222LL | type C = String where Self: Copy;
4323 | ^^^^ the trait `Copy` is not implemented for `T`
@@ -62,7 +42,7 @@ LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
6242 | +++++++++++++++++++
6343
6444error[E0277]: the trait bound `T: Copy` is not satisfied
65- --> $DIR/impl_bounds.rs:21 :24
45+ --> $DIR/impl_bounds.rs:20 :24
6646 |
6747LL | fn d() where Self: Copy {}
6848 | ^^^^ the trait `Copy` is not implemented for `T`
@@ -86,7 +66,7 @@ help: consider restricting type parameter `T`
8666LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
8767 | +++++++++++++++++++
8868
89- error: aborting due to 5 previous errors
69+ error: aborting due to 4 previous errors
9070
91- Some errors have detailed explanations: E0276, E0277, E0478 .
71+ Some errors have detailed explanations: E0276, E0277.
9272For more information about an error, try `rustc --explain E0276`.
0 commit comments