clap/clap_derive/tests/ui/flatten_enum_in_struct.stderr
Ed Page 7b3d3401c0 fix(derive): Support 'update' with 'flatten'
When working on #2803, I noticed a disprecancy in the augment
behavior between `Arg`s and `Subcommand`s that makes it so `Arg`s can't
be flattened with the update functionality.
2021-10-15 14:19:16 -05:00

15 lines
526 B
Text

error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied
--> $DIR/flatten_enum_in_struct.rs:3:12
|
3 | #[clap(flatten)]
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
|
= note: required by `augment_args`
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied
--> $DIR/flatten_enum_in_struct.rs:3:12
|
3 | #[clap(flatten)]
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
|
= note: required by `augment_args_for_update`