2021-07-13 17:50:55 +00:00
|
|
|
error: `#[derive(Parser)]` only supports non-tuple structs and enums
|
2022-05-20 19:10:30 +00:00
|
|
|
--> tests/derive_ui/stable/tuple_struct.rs:11:10
|
2020-01-07 10:17:23 +00:00
|
|
|
|
|
2021-07-13 17:50:55 +00:00
|
|
|
11 | #[derive(Parser, Debug)]
|
|
|
|
| ^^^^^^
|
2020-04-23 19:11:08 +00:00
|
|
|
|
|
2021-07-13 17:50:55 +00:00
|
|
|
= note: this error originates in the derive macro `Parser` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-02-13 18:06:11 +00:00
|
|
|
|
2020-03-13 17:51:41 +00:00
|
|
|
error[E0599]: no function or associated item named `parse` found for struct `Opt` in the current scope
|
2022-05-20 19:10:30 +00:00
|
|
|
--> tests/derive_ui/stable/tuple_struct.rs:16:20
|
2020-02-13 18:06:11 +00:00
|
|
|
|
|
|
|
|
13 | struct Opt(u32);
|
|
|
|
| ---------------- function or associated item `parse` not found for this
|
|
|
|
...
|
|
|
|
16 | let opt = Opt::parse();
|
|
|
|
| ^^^^^ function or associated item not found in `Opt`
|
|
|
|
|
|
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2022-05-20 19:10:30 +00:00
|
|
|
= note: the following traits define an item `parse`, perhaps you need to implement one of them:
|
2021-07-13 17:50:55 +00:00
|
|
|
candidate #1: `Parser`
|
2022-05-20 19:10:30 +00:00
|
|
|
candidate #2: `AnyValueParser`
|
|
|
|
candidate #3: `TypedValueParser`
|