Skip to content

Fill struct field with todo! never type. #21932

@iago-lito

Description

@iago-lito

I tried action Fill struct field in the following:

struct A {
    u: f64,
    v: i64,
}

fn f() -> A {
    let u = 5.0;
    let v = todo!();
    A{} // <- @action Fill struct fields.
}

And this happened:

A { u, v: todo!() }

Since (IMU) ! subtypes anything, then I would find it legit that this happened instead:

A { u, v }

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions