summary refs log tree commit diff
path: root/src/test/ui/issues/issue-75907.stderr
blob: 65b9a51e01dee09c64b95d96ea5dd0492cc4e01c (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
error[E0532]: expected tuple struct or tuple variant, found struct `Bar`
  --> $DIR/issue-75907.rs:15:9
   |
LL |     let Bar(x, y, Foo(z)) = make_bar();
   |         ^^^
   |
note: constructor is not visible here due to private fields
  --> $DIR/issue-75907.rs:15:16
   |
LL |     let Bar(x, y, Foo(z)) = make_bar();
   |                ^  ^^^^^^ private field
   |                |
   |                private field

error[E0532]: expected tuple struct or tuple variant, found struct `Foo`
  --> $DIR/issue-75907.rs:15:19
   |
LL |     let Bar(x, y, Foo(z)) = make_bar();
   |                   ^^^
   |
note: constructor is not visible here due to private fields
  --> $DIR/issue-75907.rs:15:23
   |
LL |     let Bar(x, y, Foo(z)) = make_bar();
   |                       ^ private field

error: aborting due to 2 previous errors

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