error: cannot find derive macro `Parser` in this scope
--> src/main.rs:31:17
|
31 | #[derive(Debug, Parser)]
| ^^^^^^
|
note: `Parser` is imported here, but it is only a trait, without a derive macro
--> src/main.rs:4:5
|
4 | use clap::Parser;
| ^^^^^^^^^^^^
error: cannot find attribute `command` in this scope
--> src/main.rs:32:3
|
32 | #[command(
| ^^^^^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:38:7
|
38 | #[arg(
| ^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:45:7
|
45 | #[arg(
| ^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:52:7
|
52 | #[arg(
| ^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:60:7
|
60 | #[arg(
| ^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:68:7
|
68 | #[arg(
| ^^^
error: cannot find attribute `arg` in this scope
--> src/main.rs:76:7
|
76 | #[arg(
| ^^^
error[E0599]: no function or associated item named `parse` found for struct `Opt` in the current scope
--> src/main.rs:91:20
|
37 | struct Opt {
| ---------- function or associated item `parse` not found for this struct
...
91 | 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 traits define an item `parse`, perhaps you need to implement one of them:
candidate #1: `Parser`
candidate #2: `TypedValueParser`
candidate #3: `object::read::coff::file::CoffHeader`
candidate #4: `object::read::elf::file::FileHeader`
candidate #5: `object::read::macho::file::MachHeader`
candidate #6: `object::read::pe::file::ImageNtHeaders`
candidate #7: `object::read::xcoff::file::FileHeader`
The example forkserver_simple is not compiling.