From c39352fa43f4ff4df835d511b4415c8e770438c4 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Tue, 24 Dec 2019 16:44:32 +0100 Subject: Fill in type params in 'add missing impl members' assist --- crates/ra_assists/src/doc_tests/generated.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'crates/ra_assists/src/doc_tests') diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 4586eeb59..7d84dc8fb 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs @@ -101,26 +101,26 @@ fn doctest_add_impl_default_members() { check( "add_impl_default_members", r#####" -trait T { +trait Trait { Type X; fn foo(&self); fn bar(&self) {} } -impl T for () { +impl Trait for () { Type X = (); fn foo(&self) {}<|> } "#####, r#####" -trait T { +trait Trait { Type X; fn foo(&self); fn bar(&self) {} } -impl T for () { +impl Trait for () { Type X = (); fn foo(&self) {} fn bar(&self) {} @@ -135,25 +135,25 @@ fn doctest_add_impl_missing_members() { check( "add_impl_missing_members", r#####" -trait T { +trait Trait { Type X; - fn foo(&self); + fn foo(&self) -> T; fn bar(&self) {} } -impl T for () {<|> +impl Trait for () {<|> } "#####, r#####" -trait T { +trait Trait { Type X; - fn foo(&self); + fn foo(&self) -> T; fn bar(&self) {} } -impl T for () { - fn foo(&self) { unimplemented!() } +impl Trait for () { + fn foo(&self) -> u32 { unimplemented!() } } "#####, -- cgit v1.2.3