mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
11 lines
485 B
Text
11 lines
485 B
Text
error: subcommand is only allowed on fields
|
|
--> $DIR/struct_subcommand.rs:12:24
|
|
|
|
|
12 | #[clap(name = "basic", subcommand)]
|
|
| ^^^^^^^^^^
|
|
|
|
error[E0277]: the trait bound `Opt: std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not satisfied
|
|
--> $DIR/struct_subcommand.rs:11:10
|
|
|
|
|
11 | #[derive(Clap, Debug)]
|
|
| ^^^^ the trait `std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not implemented for `Opt`
|