mirror of
https://github.com/clap-rs/clap.git
synced 2026-01-25 08:06:14 +00:00
test: Fix for 1.90
This commit is contained in:
@@ -1,42 +1,42 @@
|
||||
error[E0599]: the method `value_parser` exists for reference `&&&&&&_infer_ValueParser_for<Custom>`, but its trait bounds were not satisfied
|
||||
--> tests/derive_ui/value_parser_unsupported.rs:5:5
|
||||
|
|
||||
5 | foo: Custom,
|
||||
| ^^^ method cannot be called on `&&&&&&_infer_ValueParser_for<Custom>` due to unsatisfied trait bounds
|
||||
5 | foo: Custom,
|
||||
| ^^^ method cannot be called on `&&&&&&_infer_ValueParser_for<Custom>` due to unsatisfied trait bounds
|
||||
...
|
||||
9 | struct Custom;
|
||||
| ------------- doesn't satisfy 7 bounds
|
||||
|
|
||||
::: clap_builder/src/builder/value_parser.rs
|
||||
|
|
||||
| pub struct _infer_ValueParser_for<T>(std::marker::PhantomData<T>);
|
||||
| ------------------------------------ doesn't satisfy `_: _impls_FromStr`
|
||||
|
|
||||
= note: the following trait bounds were not satisfied:
|
||||
`Custom: ValueEnum`
|
||||
which is required by `&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueEnum`
|
||||
`Custom: ValueParserFactory`
|
||||
which is required by `&&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueParserFactory`
|
||||
`Custom: From<OsString>`
|
||||
which is required by `&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsString`
|
||||
`Custom: From<&'s std::ffi::OsStr>`
|
||||
which is required by `&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsStr`
|
||||
`Custom: From<std::string::String>`
|
||||
which is required by `&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_String`
|
||||
`Custom: From<&'s str>`
|
||||
which is required by `&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_str`
|
||||
`Custom: FromStr`
|
||||
which is required by `_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_FromStr`
|
||||
9 | struct Custom;
|
||||
| ------------- doesn't satisfy 7 bounds
|
||||
|
|
||||
::: clap_builder/src/builder/value_parser.rs
|
||||
|
|
||||
| pub struct _infer_ValueParser_for<T>(std::marker::PhantomData<T>);
|
||||
| ------------------------------------ doesn't satisfy `_: _impls_FromStr`
|
||||
|
|
||||
= note: the following trait bounds were not satisfied:
|
||||
`Custom: ValueEnum`
|
||||
which is required by `&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueEnum`
|
||||
`Custom: ValueParserFactory`
|
||||
which is required by `&&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueParserFactory`
|
||||
`Custom: From<OsString>`
|
||||
which is required by `&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsString`
|
||||
`Custom: From<&'s std::ffi::OsStr>`
|
||||
which is required by `&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsStr`
|
||||
`Custom: From<std::string::String>`
|
||||
which is required by `&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_String`
|
||||
`Custom: From<&'s str>`
|
||||
which is required by `&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_str`
|
||||
`Custom: FromStr`
|
||||
which is required by `_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_FromStr`
|
||||
note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented
|
||||
--> clap_builder/src/builder/value_parser.rs
|
||||
|
|
||||
| pub trait ValueParserFactory {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
::: clap_builder/src/derive.rs
|
||||
|
|
||||
| pub trait ValueEnum: Sized + Clone {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
--> $RUST/core/src/convert/mod.rs
|
||||
--> $RUST/core/src/str/traits.rs
|
||||
= note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
--> clap_builder/src/builder/value_parser.rs
|
||||
|
|
||||
| pub trait ValueParserFactory {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
::: clap_builder/src/derive.rs
|
||||
|
|
||||
293 | pub trait ValueEnum: Sized + Clone {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
--> $RUST/core/src/convert/mod.rs
|
||||
--> $RUST/core/src/str/traits.rs
|
||||
= note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
Reference in New Issue
Block a user