This commit is contained in:
Florian Diebold 2019-12-30 13:53:43 +01:00
parent 2e09a96f82
commit 877fda04c5

View File

@ -400,6 +400,29 @@ impl Foo for S {
)
}
#[test]
fn test_qualify_path_1() {
check_assist(
add_missing_impl_members,
"
mod foo {
struct Bar;
trait Foo { fn foo(&self, bar: Bar); }
}
struct S;
impl foo::Foo for S { <|> }",
"
mod foo {
struct Bar;
trait Foo { fn foo(&self, bar: Bar); }
}
struct S;
impl foo::Foo for S {
<|>fn foo(&self, bar: foo::Bar) { unimplemented!() }
}",
);
}
#[test]
fn test_empty_trait() {
check_assist_not_applicable(