error[E0277]: `Plain` cannot be used as a subcommand because it does not derive `Subcommand`
--> tests/ui/subcommand_not_subcommand.rs:8:14
|
8 | command: Plain,
| ^^^^^ subcommand field type must derive `Subcommand`
|
help: the trait `getargs_derive::__private::Subcommand<'static>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Subcommand<'__getargs>` is implemented for `Commands`
--> tests/ui/subcommand_not_subcommand.rs:11:10
|
11 | #[derive(Subcommand)]
| ^^^^^^^^^^
= note: this error originates in the derive macro `Subcommand` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` cannot be used as a subcommand because it does not derive `Subcommand`
--> tests/ui/subcommand_not_subcommand.rs:5:10
|
5 | #[derive(GetArgs)]
| ^^^^^^^ subcommand field type must derive `Subcommand`
|
help: the trait `getargs_derive::__private::Subcommand<'__getargs>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Subcommand<'__getargs>` is implemented for `Commands`
--> tests/ui/subcommand_not_subcommand.rs:11:10
|
11 | #[derive(Subcommand)]
| ^^^^^^^^^^
= note: this error originates in the derive macro `GetArgs` which comes from the expansion of the derive macro `Subcommand` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` does not derive `GetArgs`
--> tests/ui/subcommand_not_subcommand.rs:11:10
|
11 | #[derive(Subcommand)]
| ^^^^^^^^^^ flattened fields and newtype subcommand variants must wrap a type deriving `GetArgs`
|
help: the trait `getargs_derive::__private::Args<'__getargs>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Args<'__getargs>` is implemented for `Cli`
--> tests/ui/subcommand_not_subcommand.rs:5:10
|
5 | #[derive(GetArgs)]
| ^^^^^^^
= note: this error originates in the derive macro `Subcommand` which comes from the expansion of the derive macro `GetArgs` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` does not derive `GetArgs`
--> tests/ui/subcommand_not_subcommand.rs:13:9
|
13 | Run(Plain),
| ^^^^^ flattened fields and newtype subcommand variants must wrap a type deriving `GetArgs`
|
help: the trait `getargs_derive::__private::Args<'static>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Args<'__getargs>` is implemented for `Cli`
--> tests/ui/subcommand_not_subcommand.rs:5:10
|
5 | #[derive(GetArgs)]
| ^^^^^^^
= note: this error originates in the derive macro `GetArgs` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` cannot be used as a subcommand because it does not derive `Subcommand`
--> tests/ui/subcommand_not_subcommand.rs:8:14
|
8 | command: Plain,
| ^^^^^ subcommand field type must derive `Subcommand`
|
help: the trait `getargs_derive::__private::Subcommand<'__getargs>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Subcommand<'__getargs>` is implemented for `Commands`
--> tests/ui/subcommand_not_subcommand.rs:11:10
|
11 | #[derive(Subcommand)]
| ^^^^^^^^^^
= note: this error originates in the derive macro `Subcommand` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` does not derive `GetArgs`
--> tests/ui/subcommand_not_subcommand.rs:13:9
|
13 | Run(Plain),
| ^^^^^ flattened fields and newtype subcommand variants must wrap a type deriving `GetArgs`
|
help: the trait `getargs_derive::__private::Args<'_>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Args<'__getargs>` is implemented for `Cli`
--> tests/ui/subcommand_not_subcommand.rs:5:10
|
5 | #[derive(GetArgs)]
| ^^^^^^^
note: required by a bound in `getargs_derive::__private::command`
--> src/private.rs
|
| pub fn command<'a, T: Args<'a>, A: Input<'a>, I: Iterator<Item = A>>(
| ^^^^^^^^ required by this bound in `command`
= note: this error originates in the derive macro `GetArgs` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `Plain` does not derive `GetArgs`
--> tests/ui/subcommand_not_subcommand.rs:13:9
|
13 | Run(Plain),
| ^^^^^ flattened fields and newtype subcommand variants must wrap a type deriving `GetArgs`
|
help: the trait `getargs_derive::__private::Args<'__getargs>` is not implemented for `Plain`
--> tests/ui/subcommand_not_subcommand.rs:3:1
|
3 | struct Plain;
| ^^^^^^^^^^^^
help: the trait `getargs_derive::__private::Args<'__getargs>` is implemented for `Cli`
--> tests/ui/subcommand_not_subcommand.rs:5:10
|
5 | #[derive(GetArgs)]
| ^^^^^^^
= note: this error originates in the derive macro `GetArgs` (in Nightly builds, run with -Z macro-backtrace for more info)