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
The following causes an error in rust-analyzer but not when compiling with cargo:
#![feature(type_alias_impl_trait)]pubtraitFoo{typeOutput:Future<Output = ()>;fnfoo(&self) -> Self::Output;}structType;implFooforType{typeOutput = implFuture<Output = ()>;// Also doesn't work (in rust-analyzer) if you move this type outside of the impl with an alias.fnfoo(&self) -> Self::Output{async{}// Error: type mismatch, expected {unknown}, got impl Future<Output = ()>}}
Apologies if this is a duplicate of #9673, I was unsure if they were related or not.
The text was updated successfully, but these errors were encountered:
rust-analyzer version:
rust-analyzer 1.64.0-nightly (5342f47 2022-07-09)
rustc version:
rustc 1.64.0-nightly (87588a2af 2022-07-13)
The following causes an error in rust-analyzer but not when compiling with cargo:
Apologies if this is a duplicate of #9673, I was unsure if they were related or not.
The text was updated successfully, but these errors were encountered: