Fix tests.

This commit is contained in:
Dawer 2021-06-16 03:23:04 +05:00
parent 5f2486e9a8
commit 0f6621fbfa
6 changed files with 355 additions and 336 deletions

View file

@ -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!()
}
",
"#,
)
}