Skip to content

Wrong mismatched-arg-count on nalgebra Vector and Matrix types. #8895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dgsantana opened this issue May 20, 2021 · 1 comment
Closed

Wrong mismatched-arg-count on nalgebra Vector and Matrix types. #8895

dgsantana opened this issue May 20, 2021 · 1 comment

Comments

@dgsantana
Copy link

When writing code with the nalgebra crate, which as lots of type definitions, rust analyzer seems to get mixed up and starts giving mismatched-arg-count for almost all types.

Simple reproducible example.

`
use nalgebra::Vector2;

pub(crate) fn test_vectors() -> Vector2 {
let my_vector = Vector2::new(2.0, 2.0);
my_vector
}

#[test]
fn test() {
let v = test_vectors();
assert_eq!(v, Vector2::new(2.0, 2.0));
}
`

image

@flodiebold
Copy link
Member

Duplicate of #8654

@flodiebold flodiebold marked this as a duplicate of #8654 May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants