Skip to content

infinite loop during function argument check #101097

Closed
@kocsis1david

Description

@kocsis1david

I tried this code:

struct A;
struct B;
struct C;

fn f(
    a1: A,
    a2: A,
    b1: B,
    b2: B,
    c1: C,
    c2: C,
) {}

fn main() {
    f(
        C,
        C,
        A,
        A,
        B,
        B,
    );
}

I expected to see this happen: the compiler giving an error and showing a hint that order of the argument are not correct.

Instead, this happened: it stucks, waits forever.

Meta

It happens on both stable and nightly.

Might be related to this: #100478

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions