1
Fork 0
rust/src/test/ui/structs/struct-variant-privacy.stderr

16 lines
454 B
Text
Raw Normal View History

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-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-08-08 14:28:26 +02:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0603`.