fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
7.2 KiB226 linesraw
1error: suffixes on a tuple index are invalid
2  --> $DIR/offset-of-tuple.rs:19:35
3   |
4LL |     builtin # offset_of((u8, u8), 1_u8);
5   |                                   ^^^^ invalid suffix `u8`
6
7error: expected identifier, found `+`
8  --> $DIR/offset-of-tuple.rs:23:37
9   |
10LL |     { builtin # offset_of((u8, u8), +1) };
11   |                                     ^ expected identifier
12
13error: expected identifier, found `)`
14  --> $DIR/offset-of-tuple.rs:24:39
15   |
16LL |     { builtin # offset_of((u8, u8), 1.) };
17   |                                       ^ expected identifier
18
19error: expected identifier, found `)`
20  --> $DIR/offset-of-tuple.rs:25:40
21   |
22LL |     { builtin # offset_of((u8, u8), 1 .) };
23   |                                        ^ expected identifier
24
25error: expected identifier, found `)`
26  --> $DIR/offset-of-tuple.rs:47:45
27   |
28LL |     { builtin # offset_of(ComplexTup, 0.0.1.) };
29   |                                             ^ expected identifier
30
31error: expected identifier, found `)`
32  --> $DIR/offset-of-tuple.rs:48:46
33   |
34LL |     { builtin # offset_of(ComplexTup, 0 .0.1.) };
35   |                                              ^ expected identifier
36
37error: expected identifier, found `)`
38  --> $DIR/offset-of-tuple.rs:49:47
39   |
40LL |     { builtin # offset_of(ComplexTup, 0 . 0.1.) };
41   |                                               ^ expected identifier
42
43error: expected identifier, found `)`
44  --> $DIR/offset-of-tuple.rs:50:46
45   |
46LL |     { builtin # offset_of(ComplexTup, 0. 0.1.) };
47   |                                              ^ expected identifier
48
49error: expected identifier, found `)`
50  --> $DIR/offset-of-tuple.rs:51:46
51   |
52LL |     { builtin # offset_of(ComplexTup, 0.0 .1.) };
53   |                                              ^ expected identifier
54
55error: expected identifier, found `)`
56  --> $DIR/offset-of-tuple.rs:52:47
57   |
58LL |     { builtin # offset_of(ComplexTup, 0.0 . 1.) };
59   |                                               ^ expected identifier
60
61error: expected identifier, found `)`
62  --> $DIR/offset-of-tuple.rs:53:46
63   |
64LL |     { builtin # offset_of(ComplexTup, 0.0. 1.) };
65   |                                              ^ expected identifier
66
67error: suffixes on a tuple index are invalid
68  --> $DIR/offset-of-tuple.rs:10:26
69   |
70LL |     offset_of!((u8, u8), 1_u8);
71   |                          ^^^^ invalid suffix `u8`
72
73error: no rules expected the token `1`
74  --> $DIR/offset-of-tuple.rs:12:27
75   |
76LL |     offset_of!((u8, u8), +1);
77   |                           ^ no rules expected this token in macro call
78   |
79   = note: while trying to match sequence start
80
81error: no rules expected the token `1`
82  --> $DIR/offset-of-tuple.rs:13:27
83   |
84LL |     offset_of!((u8, u8), -1);
85   |                           ^ no rules expected this token in macro call
86   |
87   = note: while trying to match sequence start
88
89error: expected identifier, found `)`
90  --> $DIR/offset-of-tuple.rs:14:5
91   |
92LL |     offset_of!((u8, u8), 1.);
93   |     ^^^^^^^^^^^^^^^^^^^^^^^^ expected identifier
94   |
95   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
96
97error: unexpected end of macro invocation
98  --> $DIR/offset-of-tuple.rs:15:29
99   |
100LL |     offset_of!((u8, u8), 1 .);
101   |                             ^ missing tokens in macro arguments
102   |
103note: while trying to match meta-variable `$fields:tt`
104  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
105
106error: expected identifier, found `)`
107  --> $DIR/offset-of-tuple.rs:36:5
108   |
109LL |     offset_of!(ComplexTup, 0.0.1.);
110   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected identifier
111   |
112   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
113
114error: unexpected end of macro invocation
115  --> $DIR/offset-of-tuple.rs:37:35
116   |
117LL |     offset_of!(ComplexTup, 0 .0.1.);
118   |                                   ^ missing tokens in macro arguments
119   |
120note: while trying to match meta-variable `$fields:tt`
121  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
122
123error: unexpected end of macro invocation
124  --> $DIR/offset-of-tuple.rs:38:36
125   |
126LL |     offset_of!(ComplexTup, 0 . 0.1.);
127   |                                    ^ missing tokens in macro arguments
128   |
129note: while trying to match meta-variable `$fields:tt`
130  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
131
132error: no rules expected the token `0.1`
133  --> $DIR/offset-of-tuple.rs:39:31
134   |
135LL |     offset_of!(ComplexTup, 0. 0.1.);
136   |                               ^^^ no rules expected this token in macro call
137   |
138   = note: while trying to match sequence start
139
140error: expected identifier, found `)`
141  --> $DIR/offset-of-tuple.rs:40:5
142   |
143LL |     offset_of!(ComplexTup, 0.0 .1.);
144   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected identifier
145   |
146   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
147
148error: expected identifier, found `)`
149  --> $DIR/offset-of-tuple.rs:41:5
150   |
151LL |     offset_of!(ComplexTup, 0.0 . 1.);
152   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected identifier
153   |
154   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
155
156error: expected identifier, found `)`
157  --> $DIR/offset-of-tuple.rs:42:5
158   |
159LL |     offset_of!(ComplexTup, 0.0. 1.);
160   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected identifier
161   |
162   = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
163
164error[E0609]: no field `_0` on type `(u8, u8)`
165  --> $DIR/offset-of-tuple.rs:7:26
166   |
167LL |     offset_of!((u8, u8), _0);
168   |                          ^^
169
170error[E0609]: no field `01` on type `(u8, u8)`
171  --> $DIR/offset-of-tuple.rs:8:26
172   |
173LL |     offset_of!((u8, u8), 01);
174   |                          ^^
175
176error[E0609]: no field `1e2` on type `(u8, u8)`
177  --> $DIR/offset-of-tuple.rs:9:26
178   |
179LL |     offset_of!((u8, u8), 1e2);
180   |                          ^^^
181
182error[E0609]: no field `1_` on type `(u8, u8)`
183  --> $DIR/offset-of-tuple.rs:10:26
184   |
185LL |     offset_of!((u8, u8), 1_u8);
186   |                          ^^^^
187
188error[E0609]: no field `1e2` on type `(u8, u8)`
189  --> $DIR/offset-of-tuple.rs:16:35
190   |
191LL |     builtin # offset_of((u8, u8), 1e2);
192   |                                   ^^^
193
194error[E0609]: no field `_0` on type `(u8, u8)`
195  --> $DIR/offset-of-tuple.rs:17:35
196   |
197LL |     builtin # offset_of((u8, u8), _0);
198   |                                   ^^
199
200error[E0609]: no field `01` on type `(u8, u8)`
201  --> $DIR/offset-of-tuple.rs:18:35
202   |
203LL |     builtin # offset_of((u8, u8), 01);
204   |                                   ^^
205
206error[E0609]: no field `1_` on type `(u8, u8)`
207  --> $DIR/offset-of-tuple.rs:19:35
208   |
209LL |     builtin # offset_of((u8, u8), 1_u8);
210   |                                   ^^^^
211
212error[E0609]: no field `2` on type `(u8, u16)`
213  --> $DIR/offset-of-tuple.rs:31:47
214   |
215LL |     offset_of!(((u8, u16), (u32, u16, u8)), 0.2);
216   |                                               ^
217
218error[E0609]: no field `0` on type `u8`
219  --> $DIR/offset-of-tuple.rs:33:49
220   |
221LL |     offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
222   |                                                 ^
223
224error: aborting due to 33 previous errors
225
226For more information about this error, try `rustc --explain E0609`.