]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-tuple-field-names.stderr
internally change regions to be covariant
[rust.git] / tests / ui / structs / struct-tuple-field-names.stderr
1 error[E0769]: tuple variant `E::S` written as struct variant
2   --> $DIR/struct-tuple-field-names.rs:8:9
3    |
4 LL |         E::S { 0, 1 } => {}
5    |         ^^^^^^^^^^^^^
6    |
7 help: use the tuple variant pattern syntax instead
8    |
9 LL |         E::S(_, _) => {}
10    |             ~~~~~~
11
12 error[E0769]: tuple variant `S` written as struct variant
13   --> $DIR/struct-tuple-field-names.rs:13:9
14    |
15 LL |         S { } => {}
16    |         ^^^^^
17    |
18 help: use the tuple variant pattern syntax instead
19    |
20 LL |         S(_, _) => {}
21    |          ~~~~~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0769`.