fork/rust

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

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

master
1.3 KiB46 linesraw
1error[E0603]: struct `Bar` is private
2  --> $DIR/offset-of-private.rs:25:19
3   |
4LL |     offset_of!(m::Bar, public);
5   |                   ^^^ private struct
6   |
7note: the struct `Bar` is defined here
8  --> $DIR/offset-of-private.rs:14:5
9   |
10LL |     struct Bar {
11   |     ^^^^^^^^^^
12
13error[E0603]: struct `Bar` is private
14  --> $DIR/offset-of-private.rs:26:19
15   |
16LL |     offset_of!(m::Bar, private);
17   |                   ^^^ private struct
18   |
19note: the struct `Bar` is defined here
20  --> $DIR/offset-of-private.rs:14:5
21   |
22LL |     struct Bar {
23   |     ^^^^^^^^^^
24
25error[E0616]: field `private` of struct `Foo` is private
26  --> $DIR/offset-of-private.rs:22:24
27   |
28LL |     offset_of!(m::Foo, private);
29   |                        ^^^^^^^ private field
30
31error[E0616]: field `1` of struct `FooTuple` is private
32  --> $DIR/offset-of-private.rs:24:29
33   |
34LL |     offset_of!(m::FooTuple, 1);
35   |                             ^ private field
36
37error[E0616]: field `private` of struct `Bar` is private
38  --> $DIR/offset-of-private.rs:26:24
39   |
40LL |     offset_of!(m::Bar, private);
41   |                        ^^^^^^^ private field
42
43error: aborting due to 5 previous errors
44
45Some errors have detailed explanations: E0603, E0616.
46For more information about an error, try `rustc --explain E0603`.