rust/tests/ui/offset-of/offset-of-private.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.5 KiB
Plaintext
Raw Normal View History

error[E0603]: struct `Bar` is private
2023-08-15 19:10:45 +00:00
--> $DIR/offset-of-private.rs:32:19
|
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
|
LL | struct Bar {
| ^^^^^^^^^^
error[E0603]: struct `Bar` is private
2023-08-15 19:10:45 +00:00
--> $DIR/offset-of-private.rs:33:19
|
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
|
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
error[E0616]: field `1` of struct `FooTuple` is private
2023-08-15 19:10:45 +00:00
--> $DIR/offset-of-private.rs:31:29
|
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
|
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
Some errors have detailed explanations: E0603, E0616.
For more information about an error, try `rustc --explain E0603`.