@@ -16,28 +16,8 @@ LL | type B<'a, 'b> where 'a: 'b;
16
16
LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
17
17
| ^^ impl has extra requirement `'b: 'a`
18
18
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
-
39
19
error[E0277]: the trait bound `T: Copy` is not satisfied
40
- --> $DIR/impl_bounds.rs:19 :33
20
+ --> $DIR/impl_bounds.rs:18 :33
41
21
|
42
22
LL | type C = String where Self: Copy;
43
23
| ^^^^ the trait `Copy` is not implemented for `T`
@@ -62,7 +42,7 @@ LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
62
42
| +++++++++++++++++++
63
43
64
44
error[E0277]: the trait bound `T: Copy` is not satisfied
65
- --> $DIR/impl_bounds.rs:21 :24
45
+ --> $DIR/impl_bounds.rs:20 :24
66
46
|
67
47
LL | fn d() where Self: Copy {}
68
48
| ^^^^ the trait `Copy` is not implemented for `T`
@@ -86,7 +66,7 @@ help: consider restricting type parameter `T`
86
66
LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
87
67
| +++++++++++++++++++
88
68
89
- error: aborting due to 5 previous errors
69
+ error: aborting due to 4 previous errors
90
70
91
- Some errors have detailed explanations: E0276, E0277, E0478 .
71
+ Some errors have detailed explanations: E0276, E0277.
92
72
For more information about an error, try `rustc --explain E0276`.
0 commit comments