fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1014 B24 linesraw
1error[E0261]: use of undeclared lifetime name `'a`
2  --> $DIR/method-call-lifetime-args-unresolved.rs:2:15
3   |
4LL | fn main() {
5   |        - help: consider introducing lifetime `'a` here: `<'a>`
6LL |     0.clone::<'a>();
7   |               ^^ undeclared lifetime
8
9warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
10  --> $DIR/method-call-lifetime-args-unresolved.rs:2:15
11   |
12LL |     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
22error: aborting due to previous error; 1 warning emitted
23
24For more information about this error, try `rustc --explain E0261`.