danger / danger/rust

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

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
46
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hi, looks like you have problem in your code:

```rust
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>`
|
= help: the trait `Try` is not implemented for `impl Future>`

For more information about this error, try `rustc --explain E0277`.`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.