]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/issue-75907_b.stderr
Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwco
[rust.git] / tests / ui / privacy / issue-75907_b.stderr
1 error[E0532]: cannot match against a tuple struct which contains private fields
2   --> $DIR/issue-75907_b.rs:9:9
3    |
4 LL |     let Bar(x, y, z) = make_bar();
5    |         ^^^
6    |
7 note: constructor is not visible here due to private fields
8   --> $DIR/issue-75907_b.rs:9:16
9    |
10 LL |     let Bar(x, y, z) = make_bar();
11    |                ^  ^ private field
12    |                |
13    |                private field
14
15 error[E0532]: cannot match against a tuple struct which contains private fields
16   --> $DIR/issue-75907_b.rs:12:9
17    |
18 LL |     let Foo(x, y, z) = Foo::new();
19    |         ^^^
20    |
21 note: constructor is not visible here due to private fields
22   --> $DIR/issue-75907_b.rs:12:13
23    |
24 LL |     let Foo(x, y, z) = Foo::new();
25    |             ^     ^ private field
26    |             |
27    |             private field
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0532`.