Skip to content

Closing over an outer function arg is not caught by capture pass #364

Closed
@marijnh

Description

@marijnh

This currently crashes the compiler (Map.get miss in ty_param_count_and_ty_for_def in typeck.rs when looking up outer_arg):

fn foo(int outer_arg) {
    fn local() -> int {
        ret outer_arg;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions