Skip to content

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

@3JIou-home

Description

@3JIou-home

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`.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions