blob: be5406696b7de790747dc7c79e1bad6a19214d4b [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/type-mismatch-same-crate-name.rs:16:20
|
LL | a::try_foo(foo2);
| ^^^^ expected struct `main::a::Foo`, found a different struct `main::a::Foo`
|
= note: perhaps two different versions of crate `crate_a1` are being used?
error[E0308]: mismatched types
--> $DIR/type-mismatch-same-crate-name.rs:20:20
|
LL | a::try_bar(bar2);
| ^^^^ expected trait `main::a::Bar`, found a different trait `main::a::Bar`
|
= note: expected struct `std::boxed::Box<(dyn main::a::Bar + 'static)>`
found struct `std::boxed::Box<dyn main::a::Bar>`
= note: perhaps two different versions of crate `crate_a1` are being used?
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.