Skip to content

Completion statement let before newline array expression #20410

@A4-Tacks

Description

@A4-Tacks

Similar #19762

fn foo() -> [i32; 2] {
    l$0
    [1, 2]
}

Output:

loop~                                   k [LS]
line!(…)~ macro_rules! line             f [LS]
log_syntax!(…)~ macro_rules! log_syntax f [LS]
...

Expect:

let~                                    k [LS]
loop~                                   k [LS]
line!(…)~ macro_rules! line             f [LS]
log_syntax!(…)~ macro_rules! log_syntax f [LS]
...

Similarly, there are also & * -, etc

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