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

the ? operator can only be applied to values that implement Try #2

Open
3JIou-home opened this issue Dec 15, 2022 · 1 comment
Open

Comments

@3JIou-home
Copy link

Hi, looks like you have problem in your code:

error[E0277]: the `?` operator can only be applied to values that implement `Try`
  --> /home/batman/.cargo/registry/src/github.com-1ecc6299db9ec823/danger-0.1.0/src/bin/update_types.rs:17:18
   |
17 |   let mut resp = reqwest::get(url)?;
   |                  ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<Response, reqwest::Error>>`
   |
   = help: the trait `Try` is not implemented for `impl Future<Output = Result<Response, reqwest::Error>>`

For more information about this error, try `rustc --explain E0277`.`
@orta
Copy link
Member

orta commented Dec 15, 2022

👍 You're welcome to look into it

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

No branches or pull requests

2 participants