2019-05-16 21:00:27 +00:00
|
|
|
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-60622.rs:10:11
|
2019-05-16 21:00:27 +00:00
|
|
|
|
|
|
|
|
LL | fn a(&self) {}
|
|
|
|
| - the late bound lifetime parameter is introduced here
|
|
|
|
...
|
|
|
|
LL | b.a::<'_, T>();
|
|
|
|
| ^^
|
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-60622.rs:1:9
|
2019-05-16 21:00:27 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[deny(late_bound_lifetime_arguments)]` implied by `#[deny(warnings)]`
|
2019-05-16 21:00:27 +00:00
|
|
|
|
2023-02-23 17:27:06 +00:00
|
|
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-60622.rs:10:7
|
2019-05-16 21:00:27 +00:00
|
|
|
|
|
|
|
|
LL | b.a::<'_, T>();
|
2021-02-18 20:01:44 +00:00
|
|
|
| ^ - help: remove this generic argument
|
2021-01-02 18:45:11 +00:00
|
|
|
| |
|
2021-02-18 20:01:44 +00:00
|
|
|
| expected 0 generic arguments
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
2023-02-21 21:11:08 +00:00
|
|
|
note: method defined here, with 0 generic parameters
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-60622.rs:6:8
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
|
|
|
LL | fn a(&self) {}
|
|
|
|
| ^
|
2019-05-16 21:00:27 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|