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