]> git.proxmox.com Git - rustc.git/blame - src/test/ui/structs/struct-variant-privacy.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / structs / struct-variant-privacy.stderr
CommitLineData
b7449926 1error[E0603]: enum `Bar` is private
0731742a 2 --> $DIR/struct-variant-privacy.rs:7:14
b7449926 3 |
532ac7d7 4LL | fn f(b: foo::Bar) {
ba9703b0 5 | ^^^ private enum
dfeec247
XL
6 |
7note: the enum `Bar` is defined here
8 --> $DIR/struct-variant-privacy.rs:2:5
9 |
10LL | enum Bar {
11 | ^^^^^^^^
b7449926
XL
12
13error[E0603]: enum `Bar` is private
6a06907d 14 --> $DIR/struct-variant-privacy.rs:10:14
b7449926 15 |
532ac7d7 16LL | foo::Bar::Baz { a: _a } => {}
ba9703b0 17 | ^^^ private enum
dfeec247
XL
18 |
19note: the enum `Bar` is defined here
20 --> $DIR/struct-variant-privacy.rs:2:5
21 |
22LL | enum Bar {
23 | ^^^^^^^^
b7449926
XL
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0603`.