]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup
[rust.git] / src / test / ui / rfc-2565-param-attrs / proc-macro-cannot-be-used.stderr
1 error: expected an inert attribute, found an attribute macro
2   --> $DIR/proc-macro-cannot-be-used.rs:10:21
3    |
4 LL | extern "C" { fn ffi(#[id] arg1: i32, #[id] ...); }
5    |                     ^^^^^
6
7 error: expected an inert attribute, found an attribute macro
8   --> $DIR/proc-macro-cannot-be-used.rs:10:38
9    |
10 LL | extern "C" { fn ffi(#[id] arg1: i32, #[id] ...); }
11    |                                      ^^^^^
12
13 error: expected an inert attribute, found an attribute macro
14   --> $DIR/proc-macro-cannot-be-used.rs:14:38
15    |
16 LL | unsafe extern "C" fn cvar(arg1: i32, #[id] mut args: ...) {}
17    |                                      ^^^^^
18
19 error: expected an inert attribute, found an attribute macro
20   --> $DIR/proc-macro-cannot-be-used.rs:17:28
21    |
22 LL | type Alias = extern "C" fn(#[id] u8, #[id] ...);
23    |                            ^^^^^
24
25 error: expected an inert attribute, found an attribute macro
26   --> $DIR/proc-macro-cannot-be-used.rs:17:38
27    |
28 LL | type Alias = extern "C" fn(#[id] u8, #[id] ...);
29    |                                      ^^^^^
30
31 error: expected an inert attribute, found an attribute macro
32   --> $DIR/proc-macro-cannot-be-used.rs:21:9
33    |
34 LL | fn free(#[id] arg1: u8) {
35    |         ^^^^^
36
37 error: expected an inert attribute, found an attribute macro
38   --> $DIR/proc-macro-cannot-be-used.rs:23:16
39    |
40 LL |     let lam = |#[id] W(x), #[id] y: usize| ();
41    |                ^^^^^
42
43 error: expected an inert attribute, found an attribute macro
44   --> $DIR/proc-macro-cannot-be-used.rs:23:28
45    |
46 LL |     let lam = |#[id] W(x), #[id] y: usize| ();
47    |                            ^^^^^
48
49 error: expected an inert attribute, found an attribute macro
50   --> $DIR/proc-macro-cannot-be-used.rs:29:18
51    |
52 LL |     fn inherent1(#[id] self, #[id] arg1: u8) {}
53    |                  ^^^^^
54
55 error: expected an inert attribute, found an attribute macro
56   --> $DIR/proc-macro-cannot-be-used.rs:29:30
57    |
58 LL |     fn inherent1(#[id] self, #[id] arg1: u8) {}
59    |                              ^^^^^
60
61 error: expected an inert attribute, found an attribute macro
62   --> $DIR/proc-macro-cannot-be-used.rs:32:18
63    |
64 LL |     fn inherent2(#[id] &self, #[id] arg1: u8) {}
65    |                  ^^^^^
66
67 error: expected an inert attribute, found an attribute macro
68   --> $DIR/proc-macro-cannot-be-used.rs:32:31
69    |
70 LL |     fn inherent2(#[id] &self, #[id] arg1: u8) {}
71    |                               ^^^^^
72
73 error: expected an inert attribute, found an attribute macro
74   --> $DIR/proc-macro-cannot-be-used.rs:35:22
75    |
76 LL |     fn inherent3<'a>(#[id] &'a mut self, #[id] arg1: u8) {}
77    |                      ^^^^^
78
79 error: expected an inert attribute, found an attribute macro
80   --> $DIR/proc-macro-cannot-be-used.rs:35:42
81    |
82 LL |     fn inherent3<'a>(#[id] &'a mut self, #[id] arg1: u8) {}
83    |                                          ^^^^^
84
85 error: expected an inert attribute, found an attribute macro
86   --> $DIR/proc-macro-cannot-be-used.rs:38:22
87    |
88 LL |     fn inherent4<'a>(#[id] self: Box<Self>, #[id] arg1: u8) {}
89    |                      ^^^^^
90
91 error: expected an inert attribute, found an attribute macro
92   --> $DIR/proc-macro-cannot-be-used.rs:38:45
93    |
94 LL |     fn inherent4<'a>(#[id] self: Box<Self>, #[id] arg1: u8) {}
95    |                                             ^^^^^
96
97 error: expected an inert attribute, found an attribute macro
98   --> $DIR/proc-macro-cannot-be-used.rs:41:38
99    |
100 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8) {}
101    |                                      ^^^^^
102
103 error: expected an inert attribute, found an attribute macro
104   --> $DIR/proc-macro-cannot-be-used.rs:41:54
105    |
106 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8) {}
107    |                                                      ^^^^^
108
109 error: expected an inert attribute, found an attribute macro
110   --> $DIR/proc-macro-cannot-be-used.rs:47:15
111    |
112 LL |     fn trait1(#[id] self, #[id] arg1: u8);
113    |               ^^^^^
114
115 error: expected an inert attribute, found an attribute macro
116   --> $DIR/proc-macro-cannot-be-used.rs:47:27
117    |
118 LL |     fn trait1(#[id] self, #[id] arg1: u8);
119    |                           ^^^^^
120
121 error: expected an inert attribute, found an attribute macro
122   --> $DIR/proc-macro-cannot-be-used.rs:50:15
123    |
124 LL |     fn trait2(#[id] &self, #[id] arg1: u8);
125    |               ^^^^^
126
127 error: expected an inert attribute, found an attribute macro
128   --> $DIR/proc-macro-cannot-be-used.rs:50:28
129    |
130 LL |     fn trait2(#[id] &self, #[id] arg1: u8);
131    |                            ^^^^^
132
133 error: expected an inert attribute, found an attribute macro
134   --> $DIR/proc-macro-cannot-be-used.rs:53:19
135    |
136 LL |     fn trait3<'a>(#[id] &'a mut self, #[id] arg1: u8);
137    |                   ^^^^^
138
139 error: expected an inert attribute, found an attribute macro
140   --> $DIR/proc-macro-cannot-be-used.rs:53:39
141    |
142 LL |     fn trait3<'a>(#[id] &'a mut self, #[id] arg1: u8);
143    |                                       ^^^^^
144
145 error: expected an inert attribute, found an attribute macro
146   --> $DIR/proc-macro-cannot-be-used.rs:56:19
147    |
148 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
149    |                   ^^^^^
150
151 error: expected an inert attribute, found an attribute macro
152   --> $DIR/proc-macro-cannot-be-used.rs:56:42
153    |
154 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
155    |                                          ^^^^^
156
157 error: expected an inert attribute, found an attribute macro
158   --> $DIR/proc-macro-cannot-be-used.rs:56:58
159    |
160 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
161    |                                                          ^^^^^
162
163 error: expected an inert attribute, found an attribute macro
164   --> $DIR/proc-macro-cannot-be-used.rs:60:38
165    |
166 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8);
167    |                                      ^^^^^
168
169 error: expected an inert attribute, found an attribute macro
170   --> $DIR/proc-macro-cannot-be-used.rs:60:54
171    |
172 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8);
173    |                                                      ^^^^^
174
175 error: aborting due to 29 previous errors
176