2019-05-16 16:00:27 -05:00
|
|
|
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-60622.rs:10:11
|
2019-05-16 16:00:27 -05:00
|
|
|
|
|
|
|
|
LL | fn a(&self) {}
|
|
|
|
| - the late bound lifetime parameter is introduced here
|
|
|
|
...
|
|
|
|
LL | b.a::<'_, T>();
|
|
|
|
| ^^
|
|
|
|
|
|
2022-09-18 10:55:36 -05: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 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-60622.rs:1:9
|
2019-05-16 16:00:27 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[deny(late_bound_lifetime_arguments)]` implied by `#[deny(warnings)]`
|
2019-05-16 16:00:27 -05:00
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-60622.rs:10:7
|
2019-05-16 16:00:27 -05:00
|
|
|
|
|
|
|
|
LL | b.a::<'_, T>();
|
2021-02-18 14:01:44 -06:00
|
|
|
| ^ - help: remove this generic argument
|
2021-01-02 12:45:11 -06:00
|
|
|
| |
|
2021-02-18 14:01:44 -06:00
|
|
|
| expected 0 generic arguments
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
2023-02-21 15:11:08 -06:00
|
|
|
note: method defined here, with 0 generic parameters
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-60622.rs:6:8
|
2021-01-02 12:45:11 -06:00
|
|
|
|
|
|
|
|
LL | fn a(&self) {}
|
|
|
|
| ^
|
2019-05-16 16:00:27 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|