]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-call-lifetime-args-unresolved.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / methods / method-call-lifetime-args-unresolved.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/method-call-lifetime-args-unresolved.rs:2:15
3    |
4 LL | fn main() {
5    |        - help: consider introducing lifetime `'a` here: `<'a>`
6 LL |     0.clone::<'a>();
7    |               ^^ undeclared lifetime
8
9 warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
10   --> $DIR/method-call-lifetime-args-unresolved.rs:2:15
11    |
12 LL |     0.clone::<'a>();
13    |               ^^
14   --> $SRC_DIR/core/src/clone.rs:LL:COL
15    |
16    = note: the late bound lifetime parameter is introduced here
17    |
18    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
19    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
20    = note: `#[warn(late_bound_lifetime_arguments)]` on by default
21
22 error: aborting due to previous error; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0261`.