@@ -29,43 +29,43 @@ LL | { builtin # offset_of((u8, u8), 1 .) };
29
29
| ^
30
30
31
31
error: unexpected token: `)`
32
- --> $DIR/offset-of-tuple.rs:46 :45
32
+ --> $DIR/offset-of-tuple.rs:47 :45
33
33
|
34
34
LL | { builtin # offset_of(ComplexTup, 0.0.1.) };
35
35
| ^
36
36
37
37
error: unexpected token: `)`
38
- --> $DIR/offset-of-tuple.rs:47 :46
38
+ --> $DIR/offset-of-tuple.rs:48 :46
39
39
|
40
40
LL | { builtin # offset_of(ComplexTup, 0 .0.1.) };
41
41
| ^
42
42
43
43
error: unexpected token: `)`
44
- --> $DIR/offset-of-tuple.rs:48 :47
44
+ --> $DIR/offset-of-tuple.rs:49 :47
45
45
|
46
46
LL | { builtin # offset_of(ComplexTup, 0 . 0.1.) };
47
47
| ^
48
48
49
49
error: unexpected token: `)`
50
- --> $DIR/offset-of-tuple.rs:49 :46
50
+ --> $DIR/offset-of-tuple.rs:50 :46
51
51
|
52
52
LL | { builtin # offset_of(ComplexTup, 0. 0.1.) };
53
53
| ^
54
54
55
55
error: unexpected token: `)`
56
- --> $DIR/offset-of-tuple.rs:50 :46
56
+ --> $DIR/offset-of-tuple.rs:51 :46
57
57
|
58
58
LL | { builtin # offset_of(ComplexTup, 0.0 .1.) };
59
59
| ^
60
60
61
61
error: unexpected token: `)`
62
- --> $DIR/offset-of-tuple.rs:51 :47
62
+ --> $DIR/offset-of-tuple.rs:52 :47
63
63
|
64
64
LL | { builtin # offset_of(ComplexTup, 0.0 . 1.) };
65
65
| ^
66
66
67
67
error: unexpected token: `)`
68
- --> $DIR/offset-of-tuple.rs:52 :46
68
+ --> $DIR/offset-of-tuple.rs:53 :46
69
69
|
70
70
LL | { builtin # offset_of(ComplexTup, 0.0. 1.) };
71
71
| ^
@@ -104,43 +104,43 @@ LL | offset_of!((u8, u8), 1 .);
104
104
| ^
105
105
106
106
error: unexpected token: `)`
107
- --> $DIR/offset-of-tuple.rs:35 :34
107
+ --> $DIR/offset-of-tuple.rs:36 :34
108
108
|
109
109
LL | offset_of!(ComplexTup, 0.0.1.);
110
110
| ^
111
111
112
112
error: unexpected token: `)`
113
- --> $DIR/offset-of-tuple.rs:36 :35
113
+ --> $DIR/offset-of-tuple.rs:37 :35
114
114
|
115
115
LL | offset_of!(ComplexTup, 0 .0.1.);
116
116
| ^
117
117
118
118
error: unexpected token: `)`
119
- --> $DIR/offset-of-tuple.rs:37 :36
119
+ --> $DIR/offset-of-tuple.rs:38 :36
120
120
|
121
121
LL | offset_of!(ComplexTup, 0 . 0.1.);
122
122
| ^
123
123
124
124
error: unexpected token: `)`
125
- --> $DIR/offset-of-tuple.rs:38 :35
125
+ --> $DIR/offset-of-tuple.rs:39 :35
126
126
|
127
127
LL | offset_of!(ComplexTup, 0. 0.1.);
128
128
| ^
129
129
130
130
error: unexpected token: `)`
131
- --> $DIR/offset-of-tuple.rs:39 :35
131
+ --> $DIR/offset-of-tuple.rs:40 :35
132
132
|
133
133
LL | offset_of!(ComplexTup, 0.0 .1.);
134
134
| ^
135
135
136
136
error: unexpected token: `)`
137
- --> $DIR/offset-of-tuple.rs:40 :36
137
+ --> $DIR/offset-of-tuple.rs:41 :36
138
138
|
139
139
LL | offset_of!(ComplexTup, 0.0 . 1.);
140
140
| ^
141
141
142
142
error: unexpected token: `)`
143
- --> $DIR/offset-of-tuple.rs:41 :35
143
+ --> $DIR/offset-of-tuple.rs:42 :35
144
144
|
145
145
LL | offset_of!(ComplexTup, 0.0. 1.);
146
146
| ^
@@ -196,22 +196,21 @@ LL | builtin # offset_of((u8, u8), 1_u8);
196
196
error[E0609]: no field `2` on type `(u8, u16)`
197
197
--> $DIR/offset-of-tuple.rs:30:47
198
198
|
199
- LL | offset_of!(((u8, u16), (u32, u16, u8)), 0.2);
200
- | _____------------------------------------------^-
201
- | | |
202
- | | in this macro invocation
203
- LL | | offset_of!(((u8, u16), (u32, u16, u8)), 1.2);
204
- LL | | offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
205
- ... |
199
+ LL | offset_of!(((u8, u16), (u32, u16, u8)), 0.2);
200
+ | ^
201
+
202
+ error[E0609]: no field `1e2` on type `(u8, u16)`
203
+ --> $DIR/offset-of-tuple.rs:31:47
206
204
|
207
- = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
205
+ LL | offset_of!(((u8, u16), (u32, u16, u8)), 0.1e2);
206
+ | ^^^
208
207
209
208
error[E0609]: no field `0` on type `u8`
210
- --> $DIR/offset-of-tuple.rs:32 :49
209
+ --> $DIR/offset-of-tuple.rs:33 :49
211
210
|
212
211
LL | offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
213
212
| ^
214
213
215
- error: aborting due to 33 previous errors
214
+ error: aborting due to 34 previous errors
216
215
217
216
For more information about this error, try `rustc --explain E0609`.
0 commit comments