clap/tests/derive_ui/subcommand_and_methods.stderr
Ed Page f9ad2c5f09 fix(derive): Guard against invalid attributes
We had some guards but this generalizes them and puts them on every
attribute.
2022-09-02 19:26:03 -05:00

5 lines
198 B
Text

error: methods in attributes are not allowed for subcommand
--> tests/derive_ui/subcommand_and_methods.rs:16:15
|
16 | #[command(subcommand, version = "foo")]
| ^^^^^^^^^^