Closed
Description
I'm hitting this error when trying to use futures::select
on the latest nightly.
Minimal example
Cargo.toml:
[package]
name = "select-min"
version = "0.1.0"
edition = "2018"
[dependencies.futures-preview]
version = "=0.3.0-alpha.18"
features = ["async-await", "nightly"]
main.rs:
fn main() {
futures::select! {}
}
Output of cargo +nightly check
:
Checking select-min v0.1.0 (C:\Users\Fenhl\Desktop\select-min)
error: cannot find macro `proc_macro_call_0!` in this scope
--> src\main.rs:2:5
|
2 | futures::select! {}
| ^^^^^^^^^^^^^^^^^^^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
error: Could not compile `select-min`.
To learn more, run the command again with --verbose.
Adding #[macro_use] extern crate futures;
does not fix this.
Metadata
Metadata
Assignees
Labels
No labels