File: offset-of-tuple.stderr

package info (click to toggle)
rustc-web 1.78.0%2Bdfsg1-2~deb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,245,360 kB
  • sloc: xml: 147,985; javascript: 18,022; sh: 11,083; python: 10,265; ansic: 6,172; cpp: 5,023; asm: 4,390; makefile: 4,269
file content (218 lines) | stat: -rw-r--r-- 6,322 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
error: suffixes on a tuple index are invalid
  --> $DIR/offset-of-tuple.rs:19:35
   |
LL |     builtin # offset_of((u8, u8), 1_u8);
   |                                   ^^^^ invalid suffix `u8`

error: leading `+` is not supported
  --> $DIR/offset-of-tuple.rs:23:37
   |
LL |     { builtin # offset_of((u8, u8), +1) };
   |                                     ^ unexpected `+`
   |
help: try removing the `+`
   |
LL -     { builtin # offset_of((u8, u8), +1) };
LL +     { builtin # offset_of((u8, u8), 1) };
   |

error: offset_of expects dot-separated field and variant names
  --> $DIR/offset-of-tuple.rs:24:38
   |
LL |     { builtin # offset_of((u8, u8), 1.) };
   |                                      ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:25:40
   |
LL |     { builtin # offset_of((u8, u8), 1 .) };
   |                                        ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:47:45
   |
LL |     { builtin # offset_of(ComplexTup, 0.0.1.) };
   |                                             ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:48:46
   |
LL |     { builtin # offset_of(ComplexTup, 0 .0.1.) };
   |                                              ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:49:47
   |
LL |     { builtin # offset_of(ComplexTup, 0 . 0.1.) };
   |                                               ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:50:46
   |
LL |     { builtin # offset_of(ComplexTup, 0. 0.1.) };
   |                                              ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:51:46
   |
LL |     { builtin # offset_of(ComplexTup, 0.0 .1.) };
   |                                              ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:52:47
   |
LL |     { builtin # offset_of(ComplexTup, 0.0 . 1.) };
   |                                               ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:53:46
   |
LL |     { builtin # offset_of(ComplexTup, 0.0. 1.) };
   |                                              ^

error: suffixes on a tuple index are invalid
  --> $DIR/offset-of-tuple.rs:10:26
   |
LL |     offset_of!((u8, u8), 1_u8);
   |                          ^^^^ invalid suffix `u8`

error: no rules expected the token `+`
  --> $DIR/offset-of-tuple.rs:12:26
   |
LL |     offset_of!((u8, u8), +1);
   |                          ^ no rules expected this token in macro call
   |
note: while trying to match meta-variable `$fields:expr`
  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL

error: offset_of expects dot-separated field and variant names
  --> $DIR/offset-of-tuple.rs:13:26
   |
LL |     offset_of!((u8, u8), -1);
   |                          ^^

error: offset_of expects dot-separated field and variant names
  --> $DIR/offset-of-tuple.rs:14:27
   |
LL |     offset_of!((u8, u8), 1.);
   |                           ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:15:29
   |
LL |     offset_of!((u8, u8), 1 .);
   |                             ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:36:34
   |
LL |     offset_of!(ComplexTup, 0.0.1.);
   |                                  ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:37:35
   |
LL |     offset_of!(ComplexTup, 0 .0.1.);
   |                                   ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:38:36
   |
LL |     offset_of!(ComplexTup, 0 . 0.1.);
   |                                    ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:39:35
   |
LL |     offset_of!(ComplexTup, 0. 0.1.);
   |                                   ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:40:35
   |
LL |     offset_of!(ComplexTup, 0.0 .1.);
   |                                   ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:41:36
   |
LL |     offset_of!(ComplexTup, 0.0 . 1.);
   |                                    ^

error: unexpected token: `)`
  --> $DIR/offset-of-tuple.rs:42:35
   |
LL |     offset_of!(ComplexTup, 0.0. 1.);
   |                                   ^

error[E0609]: no field `_0` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:7:26
   |
LL |     offset_of!((u8, u8), _0);
   |                          ^^

error[E0609]: no field `01` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:8:26
   |
LL |     offset_of!((u8, u8), 01);
   |                          ^^

error[E0609]: no field `1e2` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:9:26
   |
LL |     offset_of!((u8, u8), 1e2);
   |                          ^^^

error[E0609]: no field `1_` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:10:26
   |
LL |     offset_of!((u8, u8), 1_u8);
   |                          ^^^^

error[E0609]: no field `1e2` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:16:35
   |
LL |     builtin # offset_of((u8, u8), 1e2);
   |                                   ^^^

error[E0609]: no field `_0` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:17:35
   |
LL |     builtin # offset_of((u8, u8), _0);
   |                                   ^^

error[E0609]: no field `01` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:18:35
   |
LL |     builtin # offset_of((u8, u8), 01);
   |                                   ^^

error[E0609]: no field `1_` on type `(u8, u8)`
  --> $DIR/offset-of-tuple.rs:19:35
   |
LL |     builtin # offset_of((u8, u8), 1_u8);
   |                                   ^^^^

error[E0609]: no field `2` on type `(u8, u16)`
  --> $DIR/offset-of-tuple.rs:31:47
   |
LL |       offset_of!(((u8, u16), (u32, u16, u8)), 0.2);
   |  _____------------------------------------------^-
   | |     |
   | |     in this macro invocation
LL | |     offset_of!(((u8, u16), (u32, u16, u8)), 1.2);
LL | |     offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
LL | |
...  |
   |
   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0609]: no field `0` on type `u8`
  --> $DIR/offset-of-tuple.rs:33:49
   |
LL |     offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
   |                                                 ^

error: aborting due to 33 previous errors

For more information about this error, try `rustc --explain E0609`.