2018-01-26 19:41:59 -06:00
|
|
|
error[E0195]: lifetime parameters or bounds on method `no_bound` do not match the trait declaration
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:19:16
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn no_bound<'b>(self, b: Inv<'b>);
|
2018-06-27 17:25:18 -05:00
|
|
|
| ---- lifetimes in impl do not match this method in trait
|
2018-01-28 15:42:49 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn no_bound<'b:'a>(self, b: Inv<'b>) {
|
2018-06-27 17:25:18 -05:00
|
|
|
| ^^^^^^^ lifetimes do not match method in trait
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
|
|
error[E0195]: lifetime parameters or bounds on method `has_bound` do not match the trait declaration
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:23:17
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn has_bound<'b:'a>(self, b: Inv<'b>);
|
2018-06-27 17:25:18 -05:00
|
|
|
| ------- lifetimes in impl do not match this method in trait
|
2018-01-28 15:42:49 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn has_bound<'b>(self, b: Inv<'b>) {
|
2018-06-27 17:25:18 -05:00
|
|
|
| ^^^^ lifetimes do not match method in trait
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
|
|
error[E0308]: method not compatible with trait
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:27:5
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
|
2018-01-28 15:42:49 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
2023-12-07 21:54:41 -06:00
|
|
|
= note: expected signature `fn(&'a _, Inv<'c>, Inv<'c>, Inv<'_>)`
|
|
|
|
found signature `fn(&'a _, Inv<'_>, Inv<'c>, Inv<'_>)`
|
2021-10-05 07:11:51 -05:00
|
|
|
note: the lifetime `'c` as defined here...
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:27:24
|
2018-06-27 18:27:47 -05:00
|
|
|
|
|
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
|
|
|
|
| ^^
|
2021-10-05 07:11:51 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime `'c` as defined here
|
2024-08-21 21:10:45 -05:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:12:24
|
2018-06-27 18:27:47 -05:00
|
|
|
|
|
2024-08-21 21:10:45 -05:00
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'b>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>);
|
2018-06-27 18:27:47 -05:00
|
|
|
| ^^
|
2018-01-26 19:41:59 -06:00
|
|
|
|
2020-01-08 11:02:10 -06:00
|
|
|
error[E0308]: method not compatible with trait
|
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:27:5
|
|
|
|
|
|
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
2023-12-07 21:54:41 -06:00
|
|
|
= note: expected signature `fn(&'a _, Inv<'c>, Inv<'c>, Inv<'_>)`
|
|
|
|
found signature `fn(&'a _, Inv<'_>, Inv<'c>, Inv<'_>)`
|
2021-10-05 07:11:51 -05:00
|
|
|
note: the lifetime `'c` as defined here...
|
2024-08-21 21:10:45 -05:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:12:24
|
2020-01-08 11:02:10 -06:00
|
|
|
|
|
2024-08-21 21:10:45 -05:00
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'b>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>);
|
2020-01-08 11:02:10 -06:00
|
|
|
| ^^
|
2021-10-05 07:11:51 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime `'c` as defined here
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:27:24
|
|
|
|
|
|
|
|
|
LL | fn wrong_bound1<'b,'c,'d:'a+'c>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>) {
|
|
|
|
| ^^
|
|
|
|
|
2018-06-27 17:25:18 -05:00
|
|
|
error[E0195]: lifetime parameters or bounds on method `wrong_bound2` do not match the trait declaration
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:42:20
|
2018-06-27 17:25:18 -05:00
|
|
|
|
|
|
|
|
LL | fn wrong_bound2<'b,'c,'d:'a+'b>(self, b: Inv<'b>, c: Inv<'c>, d: Inv<'d>);
|
|
|
|
| ---------------- lifetimes in impl do not match this method in trait
|
|
|
|
...
|
|
|
|
LL | fn wrong_bound2(self, b: Inv, c: Inv, d: Inv) {
|
2019-06-01 00:19:30 -05:00
|
|
|
| ^ lifetimes do not match method in trait
|
2018-06-27 17:25:18 -05:00
|
|
|
|
2018-01-26 19:41:59 -06:00
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 07:27:42 -05:00
|
|
|
--> $DIR/regions-bound-missing-bound-in-impl.rs:49:26
|
2018-01-26 19:41:59 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn another_bound<'x: 'a>(self, x: Inv<'x>, y: Inv<'t>);
|
2018-01-26 19:41:59 -06:00
|
|
|
| ------------------------------------------------------- definition of `another_bound` from trait
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn another_bound<'x: 't>(self, x: Inv<'x>, y: Inv<'t>) {
|
2021-10-06 07:27:42 -05:00
|
|
|
| ^^ impl has extra requirement `'x: 't`
|
2018-01-26 19:41:59 -06:00
|
|
|
|
2020-01-08 11:02:10 -06:00
|
|
|
error: aborting due to 6 previous errors
|
2018-01-26 19:41:59 -06:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0195, E0276, E0308.
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about an error, try `rustc --explain E0195`.
|