clap/clap_derive/tests/ui/arg_enum_on_struct.stderr
Ed Page 241d183b9c Bump MSRV to 1.54.0
- This makes it so `doc` compiles on stable

Fixes #2618
2021-07-30 10:19:21 +01:00

16 lines
684 B
Text

error: `#[derive(ArgEnum)]` only supports enums
--> $DIR/arg_enum_on_struct.rs:3:10
|
3 | #[derive(ArgEnum, Debug)]
| ^^^^^^^
|
= note: this error originates in the derive macro `ArgEnum` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0046]: not all trait items implemented, missing: `as_arg`
--> $DIR/arg_enum_on_struct.rs:3:10
|
3 | #[derive(ArgEnum, Debug)]
| ^^^^^^^ missing `as_arg` in implementation
|
= note: this error originates in the derive macro `ArgEnum` (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: `fn as_arg(&self) -> Option<&'static str> { todo!() }`