Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

error[E0277]: the trait bound Args: ParseArgs is not satisfied #15

@Boscop

Description

@Boscop

Thanks for this crate. It works in one of my crates where main returns anyhow::Result<()>.
But why doesn't this work? :)

error[E0277]: the trait bound `Args: ParseArgs` is not satisfied
   --> src\main.rs:287:1
    |
287 | #[paw::main]
    | ^^^^^^^^^^^^ the trait `ParseArgs` is not implemented for `Args`
    |
    = note: required by `parse_args`
#[derive(StructOpt, Debug)]
struct Args {
	// ...
}

#[paw::main]
fn main(args: Args) -> Result<(), Box<dyn Error>> {
	// ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions