mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Add edit test for await skipping completions
This commit is contained in:
parent
3e2848dc59
commit
71f1c4470d
@ -1437,5 +1437,33 @@ async fn bar() {
|
||||
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…
x
Reference in New Issue
Block a user