]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-75907.stderr
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / issues / issue-75907.stderr
1 error[E0532]: cannot match against a tuple struct which contains private fields
2   --> $DIR/issue-75907.rs:15:9
3    |
4 LL |     let Bar(x, y, Foo(z)) = make_bar();
5    |         ^^^
6    |
7 note: constructor is not visible here due to private fields
8   --> $DIR/issue-75907.rs:15:16
9    |
10 LL |     let Bar(x, y, Foo(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.rs:15:19
17    |
18 LL |     let Bar(x, y, Foo(z)) = make_bar();
19    |                   ^^^
20    |
21 note: constructor is not visible here due to private fields
22   --> $DIR/issue-75907.rs:15:23
23    |
24 LL |     let Bar(x, y, Foo(z)) = make_bar();
25    |                       ^ private field
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0532`.