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

Compile error when using "experimental" feature #2

Closed
fkohlgrueber opened this issue Nov 15, 2021 · 2 comments
Closed

Compile error when using "experimental" feature #2

fkohlgrueber opened this issue Nov 15, 2021 · 2 comments

Comments

@fkohlgrueber
Copy link

On current nightly, compiling the crate with the "experimental" feature fails:

cargo build --features experimental
error: Missing required bounds on Request
 --> src/http/client.rs:8:5
  |
8 |     type Request<'a>: HttpRequest<'a, Error = Self::Error>;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                                                           |
  |                                                           help: add the required where clauses: `where Self: 'a`

error: Missing required bounds on Slot
  --> src/ota.rs:70:5
   |
70 |     type Slot<'a>: OtaSlot;
   |     ^^^^^^^^^^^^^^^^^^^^^^-
   |                           |
   |                           help: add the required where clauses: `where Self: 'a`

error: Missing required bounds on Update
  --> src/ota.rs:71:5
   |
71 |     type Update<'a>: OtaUpdate;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                               |
   |                               help: add the required where clauses: `where Self: 'a`

error: Missing required bounds on OtaRead
   --> src/ota.rs:133:5
    |
133 |     type OtaRead<'a>: OtaRead<Error = Self::Error>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
    |                                                   |
    |                                                   help: add the required where clauses: `where Self: 'a`

Not sure when this was introduced, but it seems like CI doesn't have coverage for the "experimental" feature.

@fkohlgrueber
Copy link
Author

Seems like it's related to recent changes in nightly. See for example here: rust-lang/rust#90808

@ivmarkov
Copy link
Collaborator

Fixed with 0.13.
NOTE: The experimental features are WIP and not even tested (that is, aside from the HTTP client).

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