1 error[E0277]: the trait bound `Foo: main::a::Bar` is not satisfied
2 --> $DIR/same-crate-name.rs:31:20
5 | ---------- ^^^ the trait `main::a::Bar` is not implemented for `Foo`
7 | required by a bound introduced by this call
9 help: trait impl with same name found
10 --> $DIR/auxiliary/crate_a2.rs:5:1
12 LL | impl Bar for Foo {}
14 = note: perhaps two different versions of crate `crate_a2` are being used?
15 = help: the trait `main::a::Bar` is implemented for `ImplementsTraitForUsize<usize>`
16 note: required by a bound in `try_foo`
17 --> $DIR/auxiliary/crate_a1.rs:3:24
19 LL | pub fn try_foo(x: impl Bar) {}
20 | ^^^ required by this bound in `try_foo`
22 error[E0277]: the trait bound `DoesNotImplementTrait: main::a::Bar` is not satisfied
23 --> $DIR/same-crate-name.rs:38:20
25 LL | a::try_foo(implements_no_traits);
26 | ---------- ^^^^^^^^^^^^^^^^^^^^ the trait `main::a::Bar` is not implemented for `DoesNotImplementTrait`
28 | required by a bound introduced by this call
30 = help: the trait `main::a::Bar` is implemented for `ImplementsTraitForUsize<usize>`
31 note: required by a bound in `try_foo`
32 --> $DIR/auxiliary/crate_a1.rs:3:24
34 LL | pub fn try_foo(x: impl Bar) {}
35 | ^^^ required by this bound in `try_foo`
37 error[E0277]: the trait bound `ImplementsWrongTraitConditionally<isize>: main::a::Bar` is not satisfied
38 --> $DIR/same-crate-name.rs:45:20
40 LL | a::try_foo(other_variant_implements_mismatched_trait);
41 | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `main::a::Bar` is not implemented for `ImplementsWrongTraitConditionally<isize>`
43 | required by a bound introduced by this call
45 help: trait impl with same name found
46 --> $DIR/auxiliary/crate_a2.rs:13:1
48 LL | impl Bar for ImplementsWrongTraitConditionally<isize> {}
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 = note: perhaps two different versions of crate `crate_a2` are being used?
51 = help: the trait `main::a::Bar` is implemented for `ImplementsTraitForUsize<usize>`
52 note: required by a bound in `try_foo`
53 --> $DIR/auxiliary/crate_a1.rs:3:24
55 LL | pub fn try_foo(x: impl Bar) {}
56 | ^^^ required by this bound in `try_foo`
58 error[E0277]: the trait bound `ImplementsTraitForUsize<isize>: main::a::Bar` is not satisfied
59 --> $DIR/same-crate-name.rs:51:20
61 LL | a::try_foo(other_variant_implements_correct_trait);
62 | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `main::a::Bar` is not implemented for `ImplementsTraitForUsize<isize>`
64 | required by a bound introduced by this call
66 = help: the trait `main::a::Bar` is implemented for `ImplementsTraitForUsize<usize>`
67 note: required by a bound in `try_foo`
68 --> $DIR/auxiliary/crate_a1.rs:3:24
70 LL | pub fn try_foo(x: impl Bar) {}
71 | ^^^ required by this bound in `try_foo`
73 error: aborting due to 4 previous errors
75 For more information about this error, try `rustc --explain E0277`.