@@ -16,15 +16,6 @@ LL | type B<'a, 'b> where 'a: 'b;
16
16
LL | type B<'a, 'b> where 'b: 'a = (&'a(), &'b ());
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found
18
18
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
-
28
19
error[E0478]: lifetime bound not satisfied
29
20
--> $DIR/impl_bounds.rs:17:5
30
21
|
@@ -43,7 +34,7 @@ LL | type B<'a, 'b> where 'b: 'a = (&'a(), &'b ());
43
34
| ^^
44
35
45
36
error[E0277]: the trait bound `T: Copy` is not satisfied
46
- --> $DIR/impl_bounds.rs:21 :5
37
+ --> $DIR/impl_bounds.rs:20 :5
47
38
|
48
39
LL | type C where Self: Copy = String;
49
40
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
@@ -68,7 +59,7 @@ LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
68
59
| +++++++++++++++++++
69
60
70
61
error[E0277]: the trait bound `T: Copy` is not satisfied
71
- --> $DIR/impl_bounds.rs:23 :5
62
+ --> $DIR/impl_bounds.rs:22 :5
72
63
|
73
64
LL | fn d() where Self: Copy {}
74
65
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
@@ -92,7 +83,7 @@ help: consider restricting type parameter `T`
92
83
LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
93
84
| +++++++++++++++++++
94
85
95
- error: aborting due to 6 previous errors
86
+ error: aborting due to 5 previous errors
96
87
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