]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-mismatch-same-crate-name.stderr
db53344a07e7cc07f6839132f629d6edeadf75c4
[rust.git] / src / test / ui / type / type-mismatch-same-crate-name.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-mismatch-same-crate-name.rs:16:20
3    |
4 LL |         a::try_foo(foo2);
5    |                    ^^^^ expected struct `main::a::Foo`, found a different struct `main::a::Foo`
6    |
7    = note: expected struct `main::a::Foo` (struct `main::a::Foo`)
8               found struct `main::a::Foo` (struct `main::a::Foo`)
9 note: Perhaps two different versions of crate `crate_a1` are being used?
10   --> $DIR/type-mismatch-same-crate-name.rs:16:20
11    |
12 LL |         a::try_foo(foo2);
13    |                    ^^^^
14
15 error[E0308]: mismatched types
16   --> $DIR/type-mismatch-same-crate-name.rs:22:20
17    |
18 LL |         a::try_bar(bar2);
19    |                    ^^^^ expected trait `main::a::Bar`, found a different trait `main::a::Bar`
20    |
21    = note: expected struct `std::boxed::Box<(dyn main::a::Bar + 'static)>`
22               found struct `std::boxed::Box<dyn main::a::Bar>`
23 note: Perhaps two different versions of crate `crate_a1` are being used?
24   --> $DIR/type-mismatch-same-crate-name.rs:22:20
25    |
26 LL |         a::try_bar(bar2);
27    |                    ^^^^
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0308`.