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