@@ -30,9 +30,9 @@ note: the lifetime `'c` as defined here...
30
30
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
31
31
| ^^
32
32
note: ...does not necessarily outlive the lifetime `'c` as defined here
33
- --> $DIR/regions-bound-missing-bound-in-impl.rs:27 :24
33
+ --> $DIR/regions-bound-missing-bound-in-impl.rs:12 :24
34
34
|
35
- LL | fn wrong_bound1<'b,'c,'d:'a+'c >(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
35
+ LL | fn wrong_bound1<'b,'c,'d:'a+'b >(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>);
36
36
| ^^
37
37
38
38
error[E0308]: method not compatible with trait
@@ -44,16 +44,15 @@ LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d
44
44
= note: expected signature `fn(&'a _, Inv<'c>, Inv<'c>, Inv<'_>)`
45
45
found signature `fn(&'a _, Inv<'_>, Inv<'c>, Inv<'_>)`
46
46
note: the lifetime `'c` as defined here...
47
- --> $DIR/regions-bound-missing-bound-in-impl.rs:27 :24
47
+ --> $DIR/regions-bound-missing-bound-in-impl.rs:12 :24
48
48
|
49
- LL | fn wrong_bound1<'b,'c,'d:'a+'c >(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
49
+ LL | fn wrong_bound1<'b,'c,'d:'a+'b >(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>);
50
50
| ^^
51
51
note: ...does not necessarily outlive the lifetime `'c` as defined here
52
52
--> $DIR/regions-bound-missing-bound-in-impl.rs:27:24
53
53
|
54
54
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
55
55
| ^^
56
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
57
56
58
57
error[E0195]: lifetime parameters or bounds on method `wrong_bound2` do not match the trait declaration
59
58
--> $DIR/regions-bound-missing-bound-in-impl.rs:42:20
0 commit comments