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
use futures::future::{FutureExt,LocalBoxFuture};// 0.3.1asyncfnplain(){}fnboxed() -> LocalBoxFuture<'static,()>{async{}.boxed_local()}pubasyncfnexample(){plain();boxed();}
warning: unused implementer of `core::future::future::Future` that must be used
--> src/lib.rs:10:5
|
10 | plain();
| ^^^^^^^^
|
= note: `#[warn(unused_must_use)]` on by default
= note: futures do nothing unless you `.await` or poll them
Sadly, there's no error for the unused result of boxed, which has already caused me a few minutes of head-scratching and debugging.
The text was updated successfully, but these errors were encountered:
Sadly, there's no error for the unused result of
boxed
, which has already caused me a few minutes of head-scratching and debugging.The text was updated successfully, but these errors were encountered: