mod foo {
pub struct S;
}
mod bar {
pub struct S;
}
fn test(_: foo::S) {
test(bar::S);
}
Output expected S, found S (rust-analyzer E0308)
If expected==found, outputting expected foo::S, found bar::S would be even better
Furthermore, expected Vec<S>, found Vec<S> -> expected Vec<foo::S>, found Vec<bar::S>
Output
expected S, found S (rust-analyzer E0308)If
expected==found, outputtingexpected foo::S, found bar::Swould be even betterFurthermore,
expected Vec<S>, found Vec<S>->expected Vec<foo::S>, found Vec<bar::S>