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 core::{future::Future, pin::Pin};fntest() -> Pin<Box<dynFuture<Output = ()>>>{Box::pin(asyncmove{})}fnmain(){}
Using cargo check, works fine.
In RA, I see expected Pin<Box<dyn Future<Output = ()>, Global>>, found Pin<Box<impl Future<Output = ()>, Global>> rust-analyzer(type-mismatch) underneath the Box::pin(async move {}).
The text was updated successfully, but these errors were encountered:
rust-analyzer version: 2022-04-11
rustc version: rustc 1.61.0-nightly (76d770ac2 2022-04-02)
relevant settings:
repro:
Using
cargo check
, works fine.In RA, I see
expected Pin<Box<dyn Future<Output = ()>, Global>>, found Pin<Box<impl Future<Output = ()>, Global>> rust-analyzer(type-mismatch)
underneath theBox::pin(async move {})
.The text was updated successfully, but these errors were encountered: