1 error: function pointer types may not have generic parameters
2 --> $DIR/recover-fn-ptr-with-generics.rs:2:24
4 LL | type Predicate = fn<'a>(&'a str) -> bool;
7 help: consider moving the lifetime parameter to a `for` parameter list
9 LL - type Predicate = fn<'a>(&'a str) -> bool;
10 LL + type Predicate = for<'a> fn(&'a str) -> bool;
13 error: function pointer types may not have generic parameters
14 --> $DIR/recover-fn-ptr-with-generics.rs:5:23
16 LL | type Identity = fn<T>(T) -> T;
19 error: function pointer types may not have generic parameters
20 --> $DIR/recover-fn-ptr-with-generics.rs:10:14
22 LL | let _: fn<const N: usize, 'e, Q, 'f>();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 help: consider moving the lifetime parameters to a `for` parameter list
27 LL - let _: fn<const N: usize, 'e, Q, 'f>();
28 LL + let _: for<'e, 'f> fn();
31 error: function pointer types may not have generic parameters
32 --> $DIR/recover-fn-ptr-with-generics.rs:13:26
34 LL | let _: for<'outer> fn<'inner>();
37 help: consider moving the lifetime parameter to the `for` parameter list
39 LL - let _: for<'outer> fn<'inner>();
40 LL + let _: for<'outer, 'inner> fn();
43 error: function pointer types may not have generic parameters
44 --> $DIR/recover-fn-ptr-with-generics.rs:16:20
46 LL | let _: for<> fn<'r>();
49 help: consider moving the lifetime parameter to the `for` parameter list
51 LL - let _: for<> fn<'r>();
52 LL + let _: for<'r> fn();
55 error: function pointer types may not have generic parameters
56 --> $DIR/recover-fn-ptr-with-generics.rs:19:18
58 LL | type Hmm = fn<>();
61 error: function pointer types may not have generic parameters
62 --> $DIR/recover-fn-ptr-with-generics.rs:22:21
64 LL | let _: extern fn<'a: 'static>();
67 help: consider moving the lifetime parameter to a `for` parameter list
69 LL - let _: extern fn<'a: 'static>();
70 LL + let _: for<'a> extern fn();
73 error: function pointer types may not have generic parameters
74 --> $DIR/recover-fn-ptr-with-generics.rs:26:35
76 LL | let _: for<'any> extern "C" fn<'u>();
79 help: consider moving the lifetime parameter to the `for` parameter list
81 LL - let _: for<'any> extern "C" fn<'u>();
82 LL + let _: for<'any, 'u> extern "C" fn();
85 error: expected identifier, found `>`
86 --> $DIR/recover-fn-ptr-with-generics.rs:29:32
88 LL | type QuiteBroken = fn<const>();
89 | ^ expected identifier
91 error: lifetime bounds cannot be used in this context
92 --> $DIR/recover-fn-ptr-with-generics.rs:22:26
94 LL | let _: extern fn<'a: 'static>();
97 error[E0412]: cannot find type `T` in this scope
98 --> $DIR/recover-fn-ptr-with-generics.rs:5:27
100 LL | type Identity = fn<T>(T) -> T;
101 | ^ not found in this scope
103 error[E0412]: cannot find type `T` in this scope
104 --> $DIR/recover-fn-ptr-with-generics.rs:5:33
106 LL | type Identity = fn<T>(T) -> T;
107 | ^ not found in this scope
109 error: aborting due to 12 previous errors
111 For more information about this error, try `rustc --explain E0412`.