summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-tuple-field-names.stderr
blob: 5494c29a6fd25ce44a0b68466b6fff6ef891bf5e (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
error[E0769]: tuple variant `E::S` written as struct variant
  --> $DIR/struct-tuple-field-names.rs:8:9
   |
LL |         E::S { 0, 1 } => {}
   |         ^^^^^^^^^^^^^
   |
help: use the tuple variant pattern syntax instead
   |
LL |         E::S(_, _) => {}
   |             ~~~~~~

error[E0769]: tuple variant `S` written as struct variant
  --> $DIR/struct-tuple-field-names.rs:13:9
   |
LL |         S { } => {}
   |         ^^^^^
   |
help: use the tuple variant pattern syntax instead
   |
LL |         S(_, _) => {}
   |          ~~~~~~

error: aborting due to 2 previous errors

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