2018-08-08 14:28:26 +02:00
|
|
|
error[E0603]: enum `Bar` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/struct-variant-privacy.rs:7:14
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | fn f(b: foo::Bar) { //~ ERROR enum `Bar` is private
|
2018-10-27 20:21:34 +03:00
|
|
|
| ^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: enum `Bar` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/struct-variant-privacy.rs:9:14
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | foo::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
|
2018-10-27 20:21:34 +03:00
|
|
|
| ^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0603`.
|