2022-06-08 14:56:57 +00:00
warning: use of deprecated variant `clap::ArgAction::IncOccurrence`: Replaced with `ArgAction::SetTrue` or `ArgAction::Count`
2022-06-08 15:56:57 +00:00
--> tests/derive_ui/stable/bool_value_enum.rs:6:5
2022-06-08 14:56:57 +00:00
|
2022-06-08 15:56:57 +00:00
6 | #[clap(short, value_enum)]
2022-06-08 14:56:57 +00:00
| ^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated variant `clap::ArgAction::IncOccurrence`: Replaced with `ArgAction::SetTrue` or `ArgAction::Count`
2022-06-08 15:56:57 +00:00
--> tests/derive_ui/stable/bool_value_enum.rs:6:5
2022-06-08 14:56:57 +00:00
|
2022-06-08 15:56:57 +00:00
6 | #[clap(short, value_enum)]
2022-06-08 14:56:57 +00:00
| ^
2022-06-08 15:56:57 +00:00
error[E0277]: the trait bound `bool: ValueEnum` is not satisfied
--> tests/derive_ui/stable/bool_value_enum.rs:7:11
2022-06-02 17:48:52 +00:00
|
7 | opts: bool,
2022-06-08 15:56:57 +00:00
| ^^^^ the trait `ValueEnum` is not implemented for `bool`
2022-06-02 17:48:52 +00:00
|
2022-06-08 15:56:57 +00:00
note: required by `clap::ValueEnum::from_str`
2022-06-02 17:48:52 +00:00
--> src/derive.rs
|
| fn from_str(input: &str, ignore_case: bool) -> Result<Self, String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0618]: expected function, found enum variant `bool`
2022-06-08 15:56:57 +00:00
--> tests/derive_ui/stable/bool_value_enum.rs:7:11
2020-04-22 07:25:41 +00:00
|
7 | opts: bool,
2022-06-02 17:48:52 +00:00
| ^^^^ call expression requires function
|
help: `bool` is a unit variant, you need to write it without the parenthesis
|
7 | opts: bool,
| ~~~~
2022-06-02 20:38:16 +00:00
warning: use of deprecated associated function `clap::Arg::<'help>::possible_values`: Replaced with `Arg::value_parser(PossibleValuesParser::new(...)).takes_value(true)`
2022-06-08 15:56:57 +00:00
--> tests/derive_ui/stable/bool_value_enum.rs:7:11
2022-06-02 20:38:16 +00:00
|
7 | opts: bool,
| ^^^^
2022-06-08 15:56:57 +00:00
error[E0277]: the trait bound `bool: ValueEnum` is not satisfied
--> tests/derive_ui/stable/bool_value_enum.rs:7:11
2022-06-02 20:38:16 +00:00
|
7 | opts: bool,
2022-06-08 15:56:57 +00:00
| ^^^^ the trait `ValueEnum` is not implemented for `bool`
2022-06-02 20:38:16 +00:00
|
note: required by `value_variants`
--> src/derive.rs
|
| fn value_variants<'a>() -> &'a [Self];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-06-08 15:56:57 +00:00
error[E0277]: the trait bound `bool: ValueEnum` is not satisfied
--> tests/derive_ui/stable/bool_value_enum.rs:6:5
2022-06-02 20:38:16 +00:00
|
2022-06-08 15:56:57 +00:00
6 | / #[clap(short, value_enum)]
2022-06-02 20:38:16 +00:00
7 | | opts: bool,
2022-06-08 15:56:57 +00:00
| |______________^ the trait `ValueEnum` is not implemented for `bool`
2022-06-02 20:38:16 +00:00
|
2022-06-08 15:56:57 +00:00
note: required by a bound in `ValueEnum`
2022-06-02 20:38:16 +00:00
--> src/derive.rs
|
2022-06-08 15:56:57 +00:00
| / pub trait ValueEnum: Sized + Clone {
2022-06-02 20:38:16 +00:00
| | /// All possible argument values, in display order.
| | fn value_variants<'a>() -> &'a [Self];
| |
... |
| | fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>;
| | }
2022-06-08 15:56:57 +00:00
| |_^ required by this bound in `ValueEnum`