]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-mismatch-same-crate-name.stderr
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[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    |         arguments to this function are incorrect
8    |
9    = note: perhaps two different versions of crate `crate_a1` are being used?
10 note: function defined here
11   --> $DIR/auxiliary/crate_a1.rs:10:8
12    |
13 LL | pub fn try_foo(x: Foo){}
14    |        ^^^^^^^
15
16 error[E0308]: mismatched types
17   --> $DIR/type-mismatch-same-crate-name.rs:20:20
18    |
19 LL |         a::try_bar(bar2);
20    |         ---------- ^^^^ expected trait `main::a::Bar`, found a different trait `main::a::Bar`
21    |         |
22    |         arguments to this function are incorrect
23    |
24    = note: expected struct `Box<(dyn main::a::Bar + 'static)>`
25               found struct `Box<dyn main::a::Bar>`
26    = note: perhaps two different versions of crate `crate_a1` are being used?
27 note: function defined here
28   --> $DIR/auxiliary/crate_a1.rs:11:8
29    |
30 LL | pub fn try_bar(x: Box<Bar>){}
31    |        ^^^^^^^
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0308`.