Skip to content

Autocomplete of enum variants does not work in vec![Enum_::|] context #13231

Open
@enomado

Description

@enomado
enum En {
    Foo,
    Bar,
}

fn yolo() {
    // autocomplete works
    let p = En::Foo;

    // autocomplete do not works
    let p = vec![En::|];
}

rust-analyzer version: latest master 0.0.0 (f64c956 2022-09-12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions