Skip to content

Commit d65a752

Browse files
committed
test: Fix for 1.90
1 parent afea148 commit d65a752

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
error[E0599]: the method `value_parser` exists for reference `&&&&&&_infer_ValueParser_for<Custom>`, but its trait bounds were not satisfied
22
--> tests/derive_ui/value_parser_unsupported.rs:5:5
33
|
4-
5 | foo: Custom,
5-
| ^^^ method cannot be called on `&&&&&&_infer_ValueParser_for<Custom>` due to unsatisfied trait bounds
4+
5 | foo: Custom,
5+
| ^^^ method cannot be called on `&&&&&&_infer_ValueParser_for<Custom>` due to unsatisfied trait bounds
66
...
7-
9 | struct Custom;
8-
| ------------- doesn't satisfy 7 bounds
9-
|
10-
::: clap_builder/src/builder/value_parser.rs
11-
|
12-
| pub struct _infer_ValueParser_for<T>(std::marker::PhantomData<T>);
13-
| ------------------------------------ doesn't satisfy `_: _impls_FromStr`
14-
|
15-
= note: the following trait bounds were not satisfied:
16-
`Custom: ValueEnum`
17-
which is required by `&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueEnum`
18-
`Custom: ValueParserFactory`
19-
which is required by `&&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueParserFactory`
20-
`Custom: From<OsString>`
21-
which is required by `&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsString`
22-
`Custom: From<&'s std::ffi::OsStr>`
23-
which is required by `&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsStr`
24-
`Custom: From<std::string::String>`
25-
which is required by `&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_String`
26-
`Custom: From<&'s str>`
27-
which is required by `&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_str`
28-
`Custom: FromStr`
29-
which is required by `_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_FromStr`
7+
9 | struct Custom;
8+
| ------------- doesn't satisfy 7 bounds
9+
|
10+
::: clap_builder/src/builder/value_parser.rs
11+
|
12+
| pub struct _infer_ValueParser_for<T>(std::marker::PhantomData<T>);
13+
| ------------------------------------ doesn't satisfy `_: _impls_FromStr`
14+
|
15+
= note: the following trait bounds were not satisfied:
16+
`Custom: ValueEnum`
17+
which is required by `&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueEnum`
18+
`Custom: ValueParserFactory`
19+
which is required by `&&&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_ValueParserFactory`
20+
`Custom: From<OsString>`
21+
which is required by `&&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsString`
22+
`Custom: From<&'s std::ffi::OsStr>`
23+
which is required by `&&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_OsStr`
24+
`Custom: From<std::string::String>`
25+
which is required by `&&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_String`
26+
`Custom: From<&'s str>`
27+
which is required by `&_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_From_str`
28+
`Custom: FromStr`
29+
which is required by `_infer_ValueParser_for<Custom>: clap::builder::impl_prelude::_impls_FromStr`
3030
note: the traits `From`, `FromStr`, `ValueEnum`, and `ValueParserFactory` must be implemented
31-
--> clap_builder/src/builder/value_parser.rs
32-
|
33-
| pub trait ValueParserFactory {
34-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35-
|
36-
::: clap_builder/src/derive.rs
37-
|
38-
| pub trait ValueEnum: Sized + Clone {
39-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40-
--> $RUST/core/src/convert/mod.rs
41-
--> $RUST/core/src/str/traits.rs
42-
= note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info)
31+
--> clap_builder/src/builder/value_parser.rs
32+
|
33+
| pub trait ValueParserFactory {
34+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35+
|
36+
::: clap_builder/src/derive.rs
37+
|
38+
293 | pub trait ValueEnum: Sized + Clone {
39+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40+
--> $RUST/core/src/convert/mod.rs
41+
--> $RUST/core/src/str/traits.rs
42+
= note: this error originates in the macro `clap::value_parser` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)