Skip to content

Expects incorrect argument count in nalgebra_glm::Vec3::new() #10579

Closed
@TinBryn

Description

@TinBryn

This is probably a really hard one as I'm guessing nalgebra-glm uses some fancy macro magic to make this work. This line of code is flagged by Rust-analyzer as expecting 4 arguments but found 3.

let _v3 = nalgebra_glm::Vec3::new(1.0, 2.0, 3.0);

while when I add a forth argument, rustc now flags it saying that it expects 3 arguments but found 4.

let _v4 = nalgebra_glm::Vec3::new(1.0, 2.0, 3.0, 4.0);

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