1 error[E0637]: `&` without an explicit lifetime name cannot be used here
2 --> $DIR/implicit-stuff.rs:20:23
4 LL | let _ = for<> |_: &()| -> () {};
5 | ^ explicit lifetime name needed here
7 error[E0637]: `&` without an explicit lifetime name cannot be used here
8 --> $DIR/implicit-stuff.rs:21:23
10 LL | let _ = for<> |x: &()| -> &() { x };
11 | ^ explicit lifetime name needed here
13 error[E0637]: `&` without an explicit lifetime name cannot be used here
14 --> $DIR/implicit-stuff.rs:21:31
16 LL | let _ = for<> |x: &()| -> &() { x };
17 | ^ explicit lifetime name needed here
19 error[E0637]: `'_` cannot be used here
20 --> $DIR/implicit-stuff.rs:23:24
22 LL | let _ = for<> |x: &'_ ()| -> &'_ () { x };
23 | ^^ `'_` is a reserved lifetime name
25 error[E0637]: `'_` cannot be used here
26 --> $DIR/implicit-stuff.rs:23:35
28 LL | let _ = for<> |x: &'_ ()| -> &'_ () { x };
29 | ^^ `'_` is a reserved lifetime name
31 error[E0637]: `&` without an explicit lifetime name cannot be used here
32 --> $DIR/implicit-stuff.rs:25:25
34 LL | let _ = for<'a> |x: &()| -> &'a () { x };
35 | ^ explicit lifetime name needed here
37 error[E0637]: `&` without an explicit lifetime name cannot be used here
38 --> $DIR/implicit-stuff.rs:26:36
40 LL | let _ = for<'a> |x: &'a ()| -> &() { x };
41 | ^ explicit lifetime name needed here
43 error: implicit types in closure signatures are forbidden when `for<...>` is present
44 --> $DIR/implicit-stuff.rs:5:22
46 LL | let _ = for<> || {};
51 error: implicit types in closure signatures are forbidden when `for<...>` is present
52 --> $DIR/implicit-stuff.rs:6:31
54 LL | let _ = for<'a> || -> &'a _ { &() };
59 error: implicit types in closure signatures are forbidden when `for<...>` is present
60 --> $DIR/implicit-stuff.rs:7:22
62 LL | let _ = for<'a> |x| -> &'a () { x };
67 error: implicit types in closure signatures are forbidden when `for<...>` is present
68 --> $DIR/implicit-stuff.rs:8:29
70 LL | let _ = for<'a> |x: &'a _| -> &'a () { x };
75 error: implicit types in closure signatures are forbidden when `for<...>` is present
76 --> $DIR/implicit-stuff.rs:9:35
78 LL | let _ = for<'a> |x: &'a Vec::<_>| -> &'a Vec::<()> { x };
83 error: implicit types in closure signatures are forbidden when `for<...>` is present
84 --> $DIR/implicit-stuff.rs:10:49
86 LL | let _ = for<'a> |x: &'a Vec<()>| -> &'a Vec<_> { x };
87 | ------- `for<...>` is here ^
89 error: implicit types in closure signatures are forbidden when `for<...>` is present
90 --> $DIR/implicit-stuff.rs:11:29
92 LL | let _ = for<'a> |x: &'a _| -> &'a &'a () { x };
97 error: implicit types in closure signatures are forbidden when `for<...>` is present
98 --> $DIR/implicit-stuff.rs:12:29
100 LL | let _ = for<'a> |x: &'a _, y, z: _| -> &'a _ {
105 error: aborting due to 15 previous errors
107 For more information about this error, try `rustc --explain E0637`.