1error: `#[derive(Subcommand)]` only supports enums
2 --> $DIR/subcommand_on_struct.rs:3:10
3 |
43 | #[derive(Subcommand, Debug)]
5 | ^^^^^^^^^^
6 |
7 = note: this error originates in the derive macro `Subcommand` (in Nightly builds, run with -Z macro-backtrace for more info)
8