1 error: an `fn` pointer type cannot be `const`
2 --> $DIR/bad-fn-ptr-qualifier.rs:5:15
4 LL | pub type T0 = const fn();
7 | `const` because of this
8 | help: remove the `const` qualifier
10 error: an `fn` pointer type cannot be `const`
11 --> $DIR/bad-fn-ptr-qualifier.rs:6:15
13 LL | pub type T1 = const extern "C" fn();
14 | -----^^^^^^^^^^^^^^^^
16 | `const` because of this
17 | help: remove the `const` qualifier
19 error: an `fn` pointer type cannot be `const`
20 --> $DIR/bad-fn-ptr-qualifier.rs:7:15
22 LL | pub type T2 = const unsafe extern fn();
23 | -----^^^^^^^^^^^^^^^^^^^
25 | `const` because of this
26 | help: remove the `const` qualifier
28 error: an `fn` pointer type cannot be `async`
29 --> $DIR/bad-fn-ptr-qualifier.rs:8:15
31 LL | pub type T3 = async fn();
34 | `async` because of this
35 | help: remove the `async` qualifier
37 error: an `fn` pointer type cannot be `async`
38 --> $DIR/bad-fn-ptr-qualifier.rs:9:15
40 LL | pub type T4 = async extern fn();
43 | `async` because of this
44 | help: remove the `async` qualifier
46 error: an `fn` pointer type cannot be `async`
47 --> $DIR/bad-fn-ptr-qualifier.rs:10:15
49 LL | pub type T5 = async unsafe extern "C" fn();
50 | -----^^^^^^^^^^^^^^^^^^^^^^^
52 | `async` because of this
53 | help: remove the `async` qualifier
55 error: an `fn` pointer type cannot be `const`
56 --> $DIR/bad-fn-ptr-qualifier.rs:11:15
58 LL | pub type T6 = const async unsafe extern "C" fn();
59 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 | `const` because of this
62 | help: remove the `const` qualifier
64 error: an `fn` pointer type cannot be `async`
65 --> $DIR/bad-fn-ptr-qualifier.rs:11:15
67 LL | pub type T6 = const async unsafe extern "C" fn();
68 | ^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
70 | `async` because of this
71 | help: remove the `async` qualifier
73 error: an `fn` pointer type cannot be `const`
74 --> $DIR/bad-fn-ptr-qualifier.rs:15:17
76 LL | pub type FTT0 = for<'a> const fn();
79 | `const` because of this
80 | help: remove the `const` qualifier
82 error: an `fn` pointer type cannot be `const`
83 --> $DIR/bad-fn-ptr-qualifier.rs:16:17
85 LL | pub type FTT1 = for<'a> const extern "C" fn();
86 | ^^^^^^^^-----^^^^^^^^^^^^^^^^
88 | `const` because of this
89 | help: remove the `const` qualifier
91 error: an `fn` pointer type cannot be `const`
92 --> $DIR/bad-fn-ptr-qualifier.rs:17:17
94 LL | pub type FTT2 = for<'a> const unsafe extern fn();
95 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^
97 | `const` because of this
98 | help: remove the `const` qualifier
100 error: an `fn` pointer type cannot be `async`
101 --> $DIR/bad-fn-ptr-qualifier.rs:18:17
103 LL | pub type FTT3 = for<'a> async fn();
106 | `async` because of this
107 | help: remove the `async` qualifier
109 error: an `fn` pointer type cannot be `async`
110 --> $DIR/bad-fn-ptr-qualifier.rs:19:17
112 LL | pub type FTT4 = for<'a> async extern fn();
113 | ^^^^^^^^-----^^^^^^^^^^^^
115 | `async` because of this
116 | help: remove the `async` qualifier
118 error: an `fn` pointer type cannot be `async`
119 --> $DIR/bad-fn-ptr-qualifier.rs:20:17
121 LL | pub type FTT5 = for<'a> async unsafe extern "C" fn();
122 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
124 | `async` because of this
125 | help: remove the `async` qualifier
127 error: an `fn` pointer type cannot be `const`
128 --> $DIR/bad-fn-ptr-qualifier.rs:22:17
130 LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn();
131 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 | `const` because of this
134 | help: remove the `const` qualifier
136 error: an `fn` pointer type cannot be `async`
137 --> $DIR/bad-fn-ptr-qualifier.rs:22:17
139 LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn();
140 | ^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
142 | `async` because of this
143 | help: remove the `async` qualifier
145 error: aborting due to 16 previous errors