rust/tests/ui/structs/struct-variant-privacy-xc.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
754 B
Plaintext
Raw Normal View History

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-xc.rs:4:33
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn f(b: struct_variant_privacy::Bar) {
| ^^^ private enum
|
note: the enum `Bar` is defined here
--> $DIR/auxiliary/struct_variant_privacy.rs:1:1
|
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-xc.rs:7:33
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | struct_variant_privacy::Bar::Baz { a: _a } => {}
| ^^^ private enum
|
note: the enum `Bar` is defined here
--> $DIR/auxiliary/struct_variant_privacy.rs:1:1
|
LL | enum Bar {
| ^^^^^^^^
2018-08-08 07:28:26 -05: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`.