Skip to content
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

[wish list] Confusing error message E0308 when using two diff versions of a library #27420

Closed
jaredly opened this issue Jul 31, 2015 · 2 comments

Comments

@jaredly
Copy link

jaredly commented Jul 31, 2015

I came across this confusing error message:

src/main.rs:17:37: 17:67 error: mismatched types:
 expected `&nalgebra::structs::vec::Vec3<f32>`,
    found `&nalgebra::structs::vec::Vec3<f32>`
(expected struct `nalgebra::structs::vec::Vec3`,
    found a different struct `nalgebra::structs::vec::Vec3`) [E0308]

:) and the problem was that the version of nalgebra that I depended on was different from that which another library depended on. But the error message didn't make that clear.

Is there a way to check for this (even just "the text of expected and found is the same"), and offer a helpful you are probably using two diff versions of the library nalgebra?

@steveklabnik
Copy link
Member

We have several issues open related to this, though I can't seem to find them right now... @alexcrichton i think you may know?

@alexcrichton
Copy link
Member

I think this is a dupe of either #23252 or #22750, so closing in favor of those.

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

3 participants