|
| 1 | +error[E0658]: only a single ident or integer is stable as the field in offset_of |
| 2 | + --> $DIR/feature-gate-offset-of-nested.rs:21:27 |
| 3 | + | |
| 4 | +LL | offset_of!(Alpha, Two.0); |
| 5 | + | ^ |
| 6 | + | |
| 7 | + = note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information |
| 8 | + = help: add `#![feature(offset_of_nested)]` to the crate attributes to enable |
| 9 | + |
| 10 | +error[E0658]: only a single ident or integer is stable as the field in offset_of |
| 11 | + --> $DIR/feature-gate-offset-of-nested.rs:24:33 |
| 12 | + | |
| 13 | +LL | offset_of!((u32, (S, T)), 1.1); |
| 14 | + | _____----------------------------^- |
| 15 | + | | | |
| 16 | + | | in this macro invocation |
| 17 | +LL | | offset_of!(S, b.0); |
| 18 | +LL | | offset_of!((S, ()), 0.c); |
| 19 | +LL | | offset_of!(S, c.t); |
| 20 | +... | |
| 21 | + | |
| 22 | + = note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information |
| 23 | + = help: add `#![feature(offset_of_nested)]` to the crate attributes to enable |
| 24 | + = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 25 | + |
| 26 | +error[E0658]: only a single ident or integer is stable as the field in offset_of |
| 27 | + --> $DIR/feature-gate-offset-of-nested.rs:25:21 |
| 28 | + | |
| 29 | +LL | offset_of!(S, b.0); |
| 30 | + | ^ |
| 31 | + | |
| 32 | + = note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information |
| 33 | + = help: add `#![feature(offset_of_nested)]` to the crate attributes to enable |
| 34 | + |
| 35 | +error[E0658]: only a single ident or integer is stable as the field in offset_of |
| 36 | + --> $DIR/feature-gate-offset-of-nested.rs:26:27 |
| 37 | + | |
| 38 | +LL | offset_of!((S, ()), 0.c); |
| 39 | + | ^ |
| 40 | + | |
| 41 | + = note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information |
| 42 | + = help: add `#![feature(offset_of_nested)]` to the crate attributes to enable |
| 43 | + |
| 44 | +error[E0658]: only a single ident or integer is stable as the field in offset_of |
| 45 | + --> $DIR/feature-gate-offset-of-nested.rs:27:21 |
| 46 | + | |
| 47 | +LL | offset_of!(S, c.t); |
| 48 | + | ^ |
| 49 | + | |
| 50 | + = note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information |
| 51 | + = help: add `#![feature(offset_of_nested)]` to the crate attributes to enable |
| 52 | + |
| 53 | +error: aborting due to 5 previous errors |
| 54 | + |
| 55 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments