2023-06-02 11:53:04 -05:00
|
|
|
error: suffixes on a tuple index are invalid
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:18:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1_u8);
|
|
|
|
| ^^^^ invalid suffix `u8`
|
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: leading `+` is not supported
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:22:37
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), +1) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^ unexpected `+`
|
|
|
|
|
|
|
|
|
help: try removing the `+`
|
|
|
|
|
|
|
|
|
LL - { builtin # offset_of((u8, u8), +1) };
|
|
|
|
LL + { builtin # offset_of((u8, u8), 1) };
|
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: offset_of expects dot-separated field and variant names
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:23:38
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), 1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:24:40
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), 1 .) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:46:45
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0.1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:47:46
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0 .0.1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:48:47
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0 . 0.1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:49:46
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0. 0.1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:50:46
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0 .1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:51:47
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0 . 1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:52:46
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0. 1.) };
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
error: suffixes on a tuple index are invalid
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:9:26
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
LL | offset_of!((u8, u8), 1_u8);
|
|
|
|
| ^^^^ invalid suffix `u8`
|
2023-06-01 20:29:39 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: no rules expected the token `+`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:11:26
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
LL | offset_of!((u8, u8), +1);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^ no rules expected this token in macro call
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
note: while trying to match meta-variable `$fields:expr`
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2023-06-01 20:29:39 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: offset_of expects dot-separated field and variant names
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:12:26
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
LL | offset_of!((u8, u8), -1);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^^
|
2023-06-01 20:29:39 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: offset_of expects dot-separated field and variant names
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:13:27
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!((u8, u8), 1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:14:29
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!((u8, u8), 1 .);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:35:34
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0.1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:36:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0 .0.1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:37:36
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0 . 0.1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:38:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0. 0.1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:39:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0 .1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:40:36
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0 . 1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
error: unexpected token: `)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:41:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0. 1.);
|
2024-01-02 16:12:35 -06:00
|
|
|
| ^
|
2023-06-02 11:53:04 -05:00
|
|
|
|
2023-06-01 20:29:39 -05:00
|
|
|
error[E0609]: no field `_0` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:6:26
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
LL | offset_of!((u8, u8), _0);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0609]: no field `01` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:7:26
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!((u8, u8), 01);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0609]: no field `1e2` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:8:26
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!((u8, u8), 1e2);
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error[E0609]: no field `1_` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:9:26
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!((u8, u8), 1_u8);
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0609]: no field `1e2` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:15:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1e2);
|
|
|
|
| ^^^
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
|
|
error[E0609]: no field `_0` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:16:35
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
|
|
|
LL | builtin # offset_of((u8, u8), _0);
|
|
|
|
| ^^
|
|
|
|
|
2023-06-02 11:53:04 -05:00
|
|
|
error[E0609]: no field `01` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:17:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 01);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0609]: no field `1_` on type `(u8, u8)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:18:35
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1_u8);
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0609]: no field `2` on type `(u8, u16)`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:30:47
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
2024-01-02 16:12:35 -06:00
|
|
|
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);
|
|
|
|
... |
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
error[E0609]: no field `0` on type `u8`
|
2024-07-29 11:50:12 -05:00
|
|
|
--> $DIR/offset-of-tuple.rs:32:49
|
2023-06-02 11:53:04 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 33 previous errors
|
2023-06-01 20:29:39 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0609`.
|