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