Skip to content

Macro errors in working code (rust-analyzer master, 90ccf4f5adf) #7214

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

Closed
osa1 opened this issue Jan 9, 2021 · 1 comment
Closed

Macro errors in working code (rust-analyzer master, 90ccf4f5adf) #7214

osa1 opened this issue Jan 9, 2021 · 1 comment

Comments

@osa1
Copy link
Contributor

osa1 commented Jan 9, 2021

Tried with 5fe8cb1 (current master).

Cargo.toml:

[package]
name = "macro_test"
version = "0.1.0"
authors = []
edition = "2018"

[dependencies]
futures = { version = "0.3", default-features = false, features = ["std", "async-await"] }
tokio = { version = "0.3.6", features = ["time"] }

main.rs:

use futures::future::Fuse;
use futures::select;
use tokio::time::Sleep;

fn main() {}

async fn _test(mut x: Fuse<Sleep>, mut y: Fuse<Sleep>) {
    select! {
        () = x => {},
        () = y => {},
    }
}

Error:

Screenshot_2021-01-09_11-31-27

@lnicola
Copy link
Member

lnicola commented Jan 9, 2021

Duplicate of #6835.

@lnicola lnicola closed this as completed Jan 9, 2021
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