mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
241d183b9c
- This makes it so `doc` compiles on stable Fixes #2618
20 lines
849 B
Text
20 lines
849 B
Text
error: `#[derive(Clap)]` only supports non-tuple structs and enums
|
|
--> $DIR/tuple_struct.rs:11:10
|
|
|
|
|
11 | #[derive(Clap, Debug)]
|
|
| ^^^^
|
|
|
|
|
= note: this error originates in the derive macro `Clap` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0599]: no function or associated item named `parse` found for struct `Opt` in the current scope
|
|
--> $DIR/tuple_struct.rs:16:20
|
|
|
|
|
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
|
|
= note: the following trait defines an item `parse`, perhaps you need to implement it:
|
|
candidate #1: `Clap`
|