Skip to content

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

Closed
@jaredly

Description

@jaredly

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?

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