LL | c.same_as(22)
| ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
- = help: the trait `CompareTo<i32>` is implemented for `i64`
+ = help: the following other types implement trait `CompareTo<i64>`:
+ <i64 as CompareTo<i64>>
+ <i64 as CompareTo<u64>>
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
--> $DIR/repeated-supertrait-ambig.rs:30:7
LL | <dyn CompareToInts>::same_as(c, 22)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
- = help: the trait `CompareTo<i32>` is implemented for `i64`
+ = help: the following other types implement trait `CompareTo<i64>`:
+ <i64 as CompareTo<i64>>
+ <i64 as CompareTo<u64>>
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
--> $DIR/repeated-supertrait-ambig.rs:38:5
LL | assert_eq!(22_i64.same_as(22), true);
| ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `i64`
|
- = help: the following implementations were found:
+ = help: the following other types implement trait `CompareTo<i64>`:
<i64 as CompareTo<i64>>
<i64 as CompareTo<u64>>