1 error[E0603]: struct `Foo` is private
2 --> $DIR/issue-13641.rs:9:8
7 note: the struct `Foo` is defined here
8 --> $DIR/issue-13641.rs:2:5
13 error[E0603]: enum `Bar` is private
14 --> $DIR/issue-13641.rs:11:8
19 note: the enum `Bar` is defined here
20 --> $DIR/issue-13641.rs:4:5
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0603`.