You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a "unresolved macro $crate::select_internal!" error when using the following select macro:
MRE:
use tokio::net::TcpListener;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use futures::future::FutureExt;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let listener = TcpListener::bind("127.0.0.1:8080").fuse();
let mut shutdown_signal = tokio::signal::ctrl_c().boxed().fuse();
tokio::pin!(listener);
futures::select!{
signal = shutdown_signal => {
match signal {
Ok(_) => {
}
Err(err) => {
println!("Could not set up signal handler: {}", err);
}
}
}
d = listener => {
todo!()
}
}
Ok(())
}
Tested with current rust stable and an up to date rust analyzer version.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Getting a "unresolved macro
$crate::select_internal!
" error when using the following select macro:MRE:
Tested with current rust stable and an up to date rust analyzer version.
The text was updated successfully, but these errors were encountered: