]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-fn-ptr-qualifier.stderr
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / test / ui / parser / bad-fn-ptr-qualifier.stderr
1 error: an `fn` pointer type cannot be `const`
2   --> $DIR/bad-fn-ptr-qualifier.rs:5:15
3    |
4 LL | pub type T0 = const fn();
5    |               -----^^^^^
6    |               |
7    |               `const` because of this
8    |               help: remove the `const` qualifier
9
10 error: an `fn` pointer type cannot be `const`
11   --> $DIR/bad-fn-ptr-qualifier.rs:6:15
12    |
13 LL | pub type T1 = const extern "C" fn();
14    |               -----^^^^^^^^^^^^^^^^
15    |               |
16    |               `const` because of this
17    |               help: remove the `const` qualifier
18
19 error: an `fn` pointer type cannot be `const`
20   --> $DIR/bad-fn-ptr-qualifier.rs:7:15
21    |
22 LL | pub type T2 = const unsafe extern fn();
23    |               -----^^^^^^^^^^^^^^^^^^^
24    |               |
25    |               `const` because of this
26    |               help: remove the `const` qualifier
27
28 error: an `fn` pointer type cannot be `async`
29   --> $DIR/bad-fn-ptr-qualifier.rs:8:15
30    |
31 LL | pub type T3 = async fn();
32    |               -----^^^^^
33    |               |
34    |               `async` because of this
35    |               help: remove the `async` qualifier
36
37 error: an `fn` pointer type cannot be `async`
38   --> $DIR/bad-fn-ptr-qualifier.rs:9:15
39    |
40 LL | pub type T4 = async extern fn();
41    |               -----^^^^^^^^^^^^
42    |               |
43    |               `async` because of this
44    |               help: remove the `async` qualifier
45
46 error: an `fn` pointer type cannot be `async`
47   --> $DIR/bad-fn-ptr-qualifier.rs:10:15
48    |
49 LL | pub type T5 = async unsafe extern "C" fn();
50    |               -----^^^^^^^^^^^^^^^^^^^^^^^
51    |               |
52    |               `async` because of this
53    |               help: remove the `async` qualifier
54
55 error: an `fn` pointer type cannot be `const`
56   --> $DIR/bad-fn-ptr-qualifier.rs:11:15
57    |
58 LL | pub type T6 = const async unsafe extern "C" fn();
59    |               -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60    |               |
61    |               `const` because of this
62    |               help: remove the `const` qualifier
63
64 error: an `fn` pointer type cannot be `async`
65   --> $DIR/bad-fn-ptr-qualifier.rs:11:15
66    |
67 LL | pub type T6 = const async unsafe extern "C" fn();
68    |               ^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
69    |                     |
70    |                     `async` because of this
71    |                     help: remove the `async` qualifier
72
73 error: an `fn` pointer type cannot be `const`
74   --> $DIR/bad-fn-ptr-qualifier.rs:15:17
75    |
76 LL | pub type FTT0 = for<'a> const fn();
77    |                 ^^^^^^^^-----^^^^^
78    |                         |
79    |                         `const` because of this
80    |                         help: remove the `const` qualifier
81
82 error: an `fn` pointer type cannot be `const`
83   --> $DIR/bad-fn-ptr-qualifier.rs:16:17
84    |
85 LL | pub type FTT1 = for<'a> const extern "C" fn();
86    |                 ^^^^^^^^-----^^^^^^^^^^^^^^^^
87    |                         |
88    |                         `const` because of this
89    |                         help: remove the `const` qualifier
90
91 error: an `fn` pointer type cannot be `const`
92   --> $DIR/bad-fn-ptr-qualifier.rs:17:17
93    |
94 LL | pub type FTT2 = for<'a> const unsafe extern fn();
95    |                 ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^
96    |                         |
97    |                         `const` because of this
98    |                         help: remove the `const` qualifier
99
100 error: an `fn` pointer type cannot be `async`
101   --> $DIR/bad-fn-ptr-qualifier.rs:18:17
102    |
103 LL | pub type FTT3 = for<'a> async fn();
104    |                 ^^^^^^^^-----^^^^^
105    |                         |
106    |                         `async` because of this
107    |                         help: remove the `async` qualifier
108
109 error: an `fn` pointer type cannot be `async`
110   --> $DIR/bad-fn-ptr-qualifier.rs:19:17
111    |
112 LL | pub type FTT4 = for<'a> async extern fn();
113    |                 ^^^^^^^^-----^^^^^^^^^^^^
114    |                         |
115    |                         `async` because of this
116    |                         help: remove the `async` qualifier
117
118 error: an `fn` pointer type cannot be `async`
119   --> $DIR/bad-fn-ptr-qualifier.rs:20:17
120    |
121 LL | pub type FTT5 = for<'a> async unsafe extern "C" fn();
122    |                 ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
123    |                         |
124    |                         `async` because of this
125    |                         help: remove the `async` qualifier
126
127 error: an `fn` pointer type cannot be `const`
128   --> $DIR/bad-fn-ptr-qualifier.rs:22:17
129    |
130 LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn();
131    |                 ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132    |                         |
133    |                         `const` because of this
134    |                         help: remove the `const` qualifier
135
136 error: an `fn` pointer type cannot be `async`
137   --> $DIR/bad-fn-ptr-qualifier.rs:22:17
138    |
139 LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn();
140    |                 ^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^
141    |                               |
142    |                               `async` because of this
143    |                               help: remove the `async` qualifier
144
145 error: aborting due to 16 previous errors
146