2023-05-17 02:56:59 +00:00
|
|
|
error[E0603]: struct `Bar` is private
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:32:19
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | offset_of!(m::Bar, public);
|
|
|
|
| ^^^ private struct
|
|
|
|
|
|
|
|
|
note: the struct `Bar` is defined here
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:16:5
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | struct Bar {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0603]: struct `Bar` is private
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:33:19
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | offset_of!(m::Bar, private);
|
|
|
|
| ^^^ private struct
|
|
|
|
|
|
|
|
|
note: the struct `Bar` is defined here
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:16:5
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | struct Bar {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2022-09-11 07:37:49 +00:00
|
|
|
error[E0616]: field `private` of struct `Foo` is private
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:29:24
|
2022-09-11 07:37:49 +00:00
|
|
|
|
|
|
|
|
LL | offset_of!(m::Foo, private);
|
|
|
|
| ^^^^^^^ private field
|
|
|
|
|
2023-05-17 02:56:59 +00:00
|
|
|
error[E0616]: field `1` of struct `FooTuple` is private
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:31:29
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | offset_of!(m::FooTuple, 1);
|
|
|
|
| ^ private field
|
|
|
|
|
|
|
|
error[E0616]: field `private` of struct `Bar` is private
|
2023-08-15 19:10:45 +00:00
|
|
|
--> $DIR/offset-of-private.rs:33:24
|
2023-05-17 02:56:59 +00:00
|
|
|
|
|
|
|
|
LL | offset_of!(m::Bar, private);
|
|
|
|
| ^^^^^^^ private field
|
|
|
|
|
2023-08-15 19:10:45 +00:00
|
|
|
error[E0616]: field `private` of struct `Foo` is private
|
|
|
|
--> $DIR/offset-of-private.rs:37:31
|
|
|
|
|
|
|
|
|
LL | offset_of!(m::Baz, Var1.0.private);
|
|
|
|
| ^^^^^^^ private field
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2022-09-11 07:37:49 +00:00
|
|
|
|
2023-05-17 02:56:59 +00:00
|
|
|
Some errors have detailed explanations: E0603, E0616.
|
|
|
|
For more information about an error, try `rustc --explain E0603`.
|