]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-variant-privacy.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / structs / struct-variant-privacy.stderr
1 error[E0603]: enum `Bar` is private
2   --> $DIR/struct-variant-privacy.rs:7:14
3    |
4 LL | fn f(b: foo::Bar) {
5    |              ^^^ private enum
6    |
7 note: the enum `Bar` is defined here
8   --> $DIR/struct-variant-privacy.rs:2:5
9    |
10 LL |     enum Bar {
11    |     ^^^^^^^^
12
13 error[E0603]: enum `Bar` is private
14   --> $DIR/struct-variant-privacy.rs:10:14
15    |
16 LL |         foo::Bar::Baz { a: _a } => {}
17    |              ^^^ private enum
18    |
19 note: the enum `Bar` is defined here
20   --> $DIR/struct-variant-privacy.rs:2:5
21    |
22 LL |     enum Bar {
23    |     ^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0603`.