fn qualified_path_uses_correct_scope() {
        check_assist(
            add_function,
            "
mod foo {
    pub struct Foo;
}
fn bar() {
    use foo::Foo;
    let foo = Foo;
    baz<|>(foo)
}
",
            "
mod foo {
    pub struct Foo;
}
fn bar() {
    use foo::Foo;
    let foo = Foo;
    baz(foo)
}

fn baz(foo: foo::Foo) {
    ${0:todo!()}
}
",
        )
    }
// Ignored until local imports are supported.
// See https://github.com/rust-analyzer/rust-analyzer/issues/1165
Ignored until local imports are supported.
Ignored until local imports are supported .
fn qualified_path_uses_correct_scope() {
        check_assist(
            add_function,
            "
mod foo {
    pub struct Foo;
}
fn bar() {
    use foo::Foo;
    let foo = Foo;
    baz<|>(foo)
}
",
            "
mod foo {
    pub struct Foo;
}
fn bar() {
    use foo::Foo;
    let foo = Foo;
    baz(foo)
}
fn baz(foo: foo::Foo) {
    ${0:todo!()}
}
",
        )
    }
fn qualified_path_uses_correct_scope ( ) { check_assist ( add_function , " " , " " , ) }
Ignored until local imports are supported.
Ignored until local imports are supported .