Skip to content

No signature help returned at ':'  #10173

Closed
@gfreezy

Description

@gfreezy

This test should pass.

#[test]
fn test_enum_in_nested_method_in_lambda() {
    check(
        r#"
enum A {
    A,
    B
}

fn bar(_: A) { }

fn main() {
    let foo = Foo;
    std::thread::spawn(move || { bar(A:$0) } );
}
"#,
        expect![[r#"
                fn bar(_: A)
                (<_: A>)
            "#]],
    );
}

Related ast is as below:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserparser issuesC-bugCategory: bugS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions