Skip to content

Closure in repeat expression causes cyclic dependency error #50688

Closed
@leoyvens

Description

@leoyvens

The following code:

fn main() { 
    [1;  || {} ];
}

Will give a cyclic query dependency error between checking main and const-evaluating the closure, but if you use [1; { || {} } ] then you get a proper type checking error.

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