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

Running MQTT package with v2020 generates error #1

Open
maxbull opened this issue Jan 23, 2024 · 1 comment
Open

Running MQTT package with v2020 generates error #1

maxbull opened this issue Jan 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@maxbull
Copy link

maxbull commented Jan 23, 2024

I know it's 2018 based, but in a previous version I was able to use nightly builds to compile correctly, now produces error.

My app uses v1.75, and nightly builds and now I get something like this

error[E0277]: the trait bound `std::future::GenFuture<[static generator@src/main.rs:236:18: 239:6 _]>: std::marker::Unpin` is not satisfied in `impl std::future::Future`
  --> src/main.rs:236:7
   |
36 |     s.push(async {
   |       ^^^^ within `impl std::future::Future`, the trait `std::marker::Unpin` is not implemented for `std::future::GenFuture<[static generator@src/main.rs:36:18: 39:6 _]>`
   |
   = help: the following implementations were found:
             <std::future::GenFuture<T> as std::marker::Unpin>
   = note: required because it appears within the type `impl std::future::Future`

error[E0599]: no method named `push` found for type `Scope<impl std::future::Future>` in the current scope
  --> src/main.rs:40:7
   |
4  | / struct Scope<T>
5  | | where
6  | |     T: std::future::Future + std::marker::Unpin,
7  | | {
8  | |     v: Vec<T>,
9  | | }
   | |_- method `push` not found for this
@sigrlami
Copy link
Owner

I'll check it over the weekend, but recent nightly builds quite unstable. Complete switch to 2020 in works.

@sigrlami sigrlami added the bug Something isn't working label Jan 24, 2024
@sigrlami sigrlami self-assigned this Jan 24, 2024
@sigrlami sigrlami added this to the v0.7.1 milestone Jan 24, 2024
@sigrlami sigrlami moved this to Backlog in glaze-mq board Jan 24, 2024
@sigrlami sigrlami moved this from Backlog to Ready in glaze-mq board Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

2 participants