]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-call-lifetime-args-unresolved.stderr
Rollup merge of #95214 - tbu-:pr_vec_append_doc, r=Mark-Simulacrum
[rust.git] / src / test / 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    |
15   ::: $SRC_DIR/core/src/clone.rs:LL:COL
16    |
17 LL |     fn clone(&self) -> Self;
18    |              - the late bound lifetime parameter is introduced here
19    |
20    = note: `#[warn(late_bound_lifetime_arguments)]` on by default
21    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0261`.