fork/rust

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

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

master
930 B33 linesraw
1error[E0261]: use of undeclared lifetime name `'a`
2  --> $DIR/suggestion-for-introducing-lifetime-into-binder.rs:3:16
3   |
4LL |     for<> |_: &'a ()| -> () {};
5   |                ^^ undeclared lifetime
6   |
7help: consider introducing lifetime `'a` here
8   |
9LL |     for<'a, > |_: &'a ()| -> () {};
10   |         +++
11help: consider introducing lifetime `'a` here
12   |
13LL | fn main<'a>() {
14   |        ++++
15
16error[E0261]: use of undeclared lifetime name `'b`
17  --> $DIR/suggestion-for-introducing-lifetime-into-binder.rs:5:18
18   |
19LL |     for<'a> |_: &'b ()| -> () {};
20   |                  ^^ undeclared lifetime
21   |
22help: consider introducing lifetime `'b` here
23   |
24LL |     for<'b, 'a> |_: &'b ()| -> () {};
25   |         +++
26help: consider introducing lifetime `'b` here
27   |
28LL | fn main<'b>() {
29   |        ++++
30
31error: aborting due to 2 previous errors
32
33For more information about this error, try `rustc --explain E0261`.