2021-07-13 17:50:55 +00:00
|
|
|
error: `#[derive(Parser)]` only supports non-tuple structs and enums
|
2022-04-26 14:01:44 +00:00
|
|
|
--> tests/derive_ui/next/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-04-26 14:01:44 +00:00
|
|
|
--> tests/derive_ui/next/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:
|
|
|
|
candidate #1: `StructOpt`
|
|
|
|
candidate #2: `AnyValueParser`
|
|
|
|
candidate #3: `TypedValueParser`
|