mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Fix tests.
This commit is contained in:
parent
5f2486e9a8
commit
0f6621fbfa
6 changed files with 355 additions and 336 deletions
|
@ -746,7 +746,8 @@ fn bar(worble: ()) ${0:-> ()} {
|
|||
fn add_function_with_impl_trait_arg() {
|
||||
check_assist(
|
||||
generate_function,
|
||||
r"
|
||||
r#"
|
||||
#[lang = "sized"] trait Sized {}
|
||||
trait Foo {}
|
||||
fn foo() -> impl Foo {
|
||||
todo!()
|
||||
|
@ -754,8 +755,9 @@ fn foo() -> impl Foo {
|
|||
fn baz() {
|
||||
$0bar(foo())
|
||||
}
|
||||
",
|
||||
r"
|
||||
"#,
|
||||
r#"
|
||||
#[lang = "sized"] trait Sized {}
|
||||
trait Foo {}
|
||||
fn foo() -> impl Foo {
|
||||
todo!()
|
||||
|
@ -767,7 +769,7 @@ fn baz() {
|
|||
fn bar(foo: impl Foo) ${0:-> ()} {
|
||||
todo!()
|
||||
}
|
||||
",
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue