clap/clap_derive/tests/ui/struct_flatten.stderr
2020-01-18 19:04:11 +05:30

11 lines
470 B
Text

error: flatten is only allowed on fields
--> $DIR/struct_flatten.rs:12:24
|
12 | #[clap(name = "basic", flatten)]
| ^^^^^^^
error[E0277]: the trait bound `Opt: std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not satisfied
--> $DIR/struct_flatten.rs:11:10
|
11 | #[derive(Clap, Debug)]
| ^^^^ the trait `std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not implemented for `Opt`