2021-07-13 17:50:55 +00:00
|
|
|
error: `#[derive(Parser)]` only supports non-tuple structs and enums
|
2022-07-22 14:19:14 +00:00
|
|
|
--> tests/derive_ui/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-07-22 14:19:14 +00:00
|
|
|
--> tests/derive_ui/tuple_struct.rs:16:20
|
2020-02-13 18:06:11 +00:00
|
|
|
|
|
|
|
|
13 | struct Opt(u32);
|
2023-01-09 18:29:41 +00:00
|
|
|
| ---------- function or associated item `parse` not found for this struct
|
2020-02-13 18:06:11 +00:00
|
|
|
...
|
|
|
|
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:
|
2022-06-28 01:18:22 +00:00
|
|
|
candidate #1: `Parser`
|
2022-06-08 19:36:55 +00:00
|
|
|
candidate #2: `TypedValueParser`
|