Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly specify the Result type #218

Merged
merged 1 commit into from Jul 11, 2019
Merged

Explicitly specify the Result type #218

merged 1 commit into from Jul 11, 2019

Conversation

danielschemmel
Copy link
Contributor

The name Result is evaluated in the user context, which may break when another Result type is used. For example, in the presence of the basic error-chain quickstart, this leads to:

   Compiling application v0.0.1 (/home/ghast/rust-cli-template)
error[E0107]: wrong number of type arguments: expected 1, found 2
  --> src/main.rs:13:10
   |
13 | #[derive(structopt::StructOpt, Debug)]
   |          ^^^^^^^^^^^^^^^^^^^^ unexpected type argument

error: aborting due to previous error

For more information about this error, try `rustc --explain E0107`.
error: Could not compile `application`.

By explicitly specifying the Result type, this name clash can be resolved correctly.

@TeXitoi
Copy link
Owner

TeXitoi commented Jul 10, 2019

Thanks

@TeXitoi TeXitoi merged commit 119dd7e into TeXitoi:master Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants