Skip to content

Reference autocompletion inserts & in wrong place in macros #13035

@flodiebold

Description

@flodiebold

I could have sworn we have a ticket for this, but I couldn't find it.

// some extra text

enum Foo { Bar }

fn foo(foo: &Foo) {}

fn test() {
    println!("{}", foo(Foo::Ba<|>))
}

using the &Bar completion here inserts the ampersand in the wrong place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions