|
1 | 1 | error[E0195]: lifetime parameters or bounds on method `no_bound` do not match the trait declaration |
2 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:28:5 |
| 2 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:29:16 |
3 | 3 | | |
4 | 4 | LL | fn no_bound<'b>(self, b: Inv<'b>); |
5 | | - | ---------------------------------- lifetimes in impl do not match this method in trait |
| 5 | + | ---- lifetimes in impl do not match this method in trait |
6 | 6 | ... |
7 | 7 | LL | fn no_bound<'b:'a>(self, b: Inv<'b>) { |
8 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetimes do not match method in trait |
| 8 | + | ^^^^^^^ lifetimes do not match method in trait |
9 | 9 |
|
10 | 10 | error[E0195]: lifetime parameters or bounds on method `has_bound` do not match the trait declaration |
11 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:32:5 |
| 11 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:33:17 |
12 | 12 | | |
13 | 13 | LL | fn has_bound<'b:'a>(self, b: Inv<'b>); |
14 | | - | -------------------------------------- lifetimes in impl do not match this method in trait |
| 14 | + | ------- lifetimes in impl do not match this method in trait |
15 | 15 | ... |
16 | 16 | LL | fn has_bound<'b>(self, b: Inv<'b>) { |
17 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetimes do not match method in trait |
| 17 | + | ^^^^ lifetimes do not match method in trait |
18 | 18 |
|
19 | 19 | error[E0308]: method not compatible with trait |
20 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:36:5 |
| 20 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:37:5 |
21 | 21 | | |
22 | 22 | LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) { |
23 | 23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch |
24 | 24 | | |
25 | 25 | = note: expected type `fn(&'a isize, Inv<'c>, Inv<'c>, Inv<'d>)` |
26 | 26 | found type `fn(&'a isize, Inv<'_>, Inv<'c>, Inv<'d>)` |
27 | | -note: the lifetime 'c as defined on the method body at 36:5... |
28 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:36:5 |
| 27 | +note: the lifetime 'c as defined on the method body at 37:24... |
| 28 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:37:24 |
29 | 29 | | |
30 | 30 | LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) { |
31 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | | -note: ...does not necessarily outlive the lifetime 'c as defined on the method body at 36:5 |
33 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:36:5 |
| 31 | + | ^^ |
| 32 | +note: ...does not necessarily outlive the lifetime 'c as defined on the method body at 37:24 |
| 33 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:37:24 |
34 | 34 | | |
35 | 35 | LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) { |
36 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | + | ^^ |
| 37 | + |
| 38 | +error[E0195]: lifetime parameters or bounds on method `wrong_bound2` do not match the trait declaration |
| 39 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:51:5 |
| 40 | + | |
| 41 | +LL | fn wrong_bound2<'b,'c,'d:'a+'b>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>); |
| 42 | + | ---------------- lifetimes in impl do not match this method in trait |
| 43 | +... |
| 44 | +LL | fn wrong_bound2(self, b: Inv, c: Inv, d: Inv) { |
| 45 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetimes do not match method in trait |
37 | 46 |
|
38 | 47 | error[E0276]: impl has stricter requirements than trait |
39 | | - --> $DIR/regions-bound-missing-bound-in-impl.rs:53:5 |
| 48 | + --> $DIR/regions-bound-missing-bound-in-impl.rs:58:5 |
40 | 49 | | |
41 | 50 | LL | fn another_bound<'x: 'a>(self, x: Inv<'x>, y: Inv<'t>); |
42 | 51 | | ------------------------------------------------------- definition of `another_bound` from trait |
43 | 52 | ... |
44 | 53 | LL | fn another_bound<'x: 't>(self, x: Inv<'x>, y: Inv<'t>) { |
45 | 54 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `'x: 't` |
46 | 55 |
|
47 | | -error: aborting due to 4 previous errors |
| 56 | +error: aborting due to 5 previous errors |
48 | 57 |
|
49 | 58 | Some errors occurred: E0195, E0276, E0308. |
50 | 59 | For more information about an error, try `rustc --explain E0195`. |
0 commit comments