2018-08-08 12:28:26 +00:00
|
|
|
error[E0603]: enum `Bar` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/struct-variant-privacy-xc.rs:4:33
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn f(b: struct_variant_privacy::Bar) {
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^^^ private enum
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the enum `Bar` is defined here
|
|
|
|
--> $DIR/auxiliary/struct_variant_privacy.rs:1:1
|
|
|
|
|
|
|
|
|
LL | enum Bar {
|
|
|
|
| ^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0603]: enum `Bar` is private
|
2021-03-05 05:54:35 +00:00
|
|
|
--> $DIR/struct-variant-privacy-xc.rs:7:33
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | struct_variant_privacy::Bar::Baz { a: _a } => {}
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^^^ --- variant `Baz` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private enum
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
|
|
|
note: the enum `Bar` is defined here
|
|
|
|
--> $DIR/auxiliary/struct_variant_privacy.rs:1:1
|
|
|
|
|
|
|
|
|
LL | enum Bar {
|
|
|
|
| ^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-03-11 17:49:27 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0603`.
|