blob: 2a089029b0a511d9d482e19aa84e460dd9961323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error[E0769]: tuple variant `X::Y` written as struct variant
--> $DIR/issue-41314.rs:7:9
|
LL | X::Y { number } => {}
| ^^^^^^^^^^^^^^^
|
help: use the tuple variant pattern syntax instead
|
LL | X::Y(number) => {}
| ~~~~~~~~
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0769`.
|