summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-75907_b.stderr
blob: b82d08473c8c9962a6298c577adf58a916286085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0532]: cannot match against a tuple struct which contains private fields
  --> $DIR/issue-75907_b.rs:9:9
   |
LL |     let Bar(x, y, z) = make_bar();
   |         ^^^
   |
note: constructor is not visible here due to private fields
  --> $DIR/issue-75907_b.rs:9:16
   |
LL |     let Bar(x, y, z) = make_bar();
   |                ^  ^ private field
   |                |
   |                private field

error[E0532]: cannot match against a tuple struct which contains private fields
  --> $DIR/issue-75907_b.rs:12:9
   |
LL |     let Foo(x, y, z) = Foo::new();
   |         ^^^
   |
note: constructor is not visible here due to private fields
  --> $DIR/issue-75907_b.rs:12:13
   |
LL |     let Foo(x, y, z) = Foo::new();
   |             ^     ^ private field
   |             |
   |             private field

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0532`.