1 error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
2 --> $DIR/repeated-supertrait-ambig.rs:26:7
5 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
7 error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
8 --> $DIR/repeated-supertrait-ambig.rs:30:7
11 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
13 help: consider further restricting this bound
15 LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
18 error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
19 --> $DIR/repeated-supertrait-ambig.rs:34:5
21 LL | <dyn CompareToInts>::same_as(c, 22)
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
24 note: required by `CompareTo::same_as`
25 --> $DIR/repeated-supertrait-ambig.rs:9:5
27 LL | fn same_as(&self, t: T) -> bool;
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
31 --> $DIR/repeated-supertrait-ambig.rs:38:5
33 LL | CompareTo::same_as(c, 22)
34 | ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
36 note: required by `CompareTo::same_as`
37 --> $DIR/repeated-supertrait-ambig.rs:9:5
39 LL | fn same_as(&self, t: T) -> bool;
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 help: consider further restricting this bound
43 LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
46 error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
47 --> $DIR/repeated-supertrait-ambig.rs:42:23
49 LL | assert_eq!(22_i64.same_as(22), true);
50 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `i64`
52 = help: the following implementations were found:
53 <i64 as CompareTo<i64>>
54 <i64 as CompareTo<u64>>
56 error: aborting due to 5 previous errors
58 For more information about this error, try `rustc --explain E0277`.