mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Add edit test for await skipping completions
This commit is contained in:
parent
3e2848dc59
commit
71f1c4470d
1 changed files with 28 additions and 0 deletions
|
|
@ -1437,5 +1437,33 @@ async fn bar() {
|
||||||
me into_future() (use core::future::IntoFuture) fn(self) -> <Self as IntoFuture>::IntoFuture
|
me into_future() (use core::future::IntoFuture) fn(self) -> <Self as IntoFuture>::IntoFuture
|
||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
|
check_edit(
|
||||||
|
"foo",
|
||||||
|
r#"
|
||||||
|
//- minicore: future
|
||||||
|
struct Foo;
|
||||||
|
impl Foo {
|
||||||
|
fn foo(self) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn foo() -> Foo { Foo }
|
||||||
|
|
||||||
|
async fn bar() {
|
||||||
|
foo().$0
|
||||||
|
}
|
||||||
|
"#,
|
||||||
|
r#"
|
||||||
|
struct Foo;
|
||||||
|
impl Foo {
|
||||||
|
fn foo(self) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn foo() -> Foo { Foo }
|
||||||
|
|
||||||
|
async fn bar() {
|
||||||
|
foo().await.foo();$0
|
||||||
|
}
|
||||||
|
"#,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue