11error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
2- --> $DIR/repeated-supertrait-ambig.rs:26:5
2+ --> $DIR/repeated-supertrait-ambig.rs:26:15
33 |
44LL | c.same_as(22)
5- | ^ ------- required by a bound introduced by this call
6- | |
7- | the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
5+ | ------- ^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
6+ | |
7+ | required by a bound introduced by this call
88 |
99 = help: the following other types implement trait `CompareTo<T>`:
1010 <i64 as CompareTo<i64>>
1111 <i64 as CompareTo<u64>>
1212
1313error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
14- --> $DIR/repeated-supertrait-ambig.rs:30:5
14+ --> $DIR/repeated-supertrait-ambig.rs:30:15
1515 |
1616LL | c.same_as(22)
17- | ^ ------- required by a bound introduced by this call
18- | |
19- | the trait `CompareTo<i32>` is not implemented for `C`
17+ | ------- ^^ the trait `CompareTo<i32>` is not implemented for `C`
18+ | |
19+ | required by a bound introduced by this call
2020 |
2121help: consider further restricting this bound
2222 |
2323LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
2424 | ++++++++++++++++
2525
2626error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
27- --> $DIR/repeated-supertrait-ambig.rs:34:34
27+ --> $DIR/repeated-supertrait-ambig.rs:34:37
2828 |
2929LL | <dyn CompareToInts>::same_as(c, 22)
30- | ---------------------------- ^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
30+ | ---------------------------- ^ ^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
3131 | |
3232 | required by a bound introduced by this call
3333 |
@@ -36,10 +36,10 @@ LL | <dyn CompareToInts>::same_as(c, 22)
3636 <i64 as CompareTo<u64>>
3737
3838error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
39- --> $DIR/repeated-supertrait-ambig.rs:38:24
39+ --> $DIR/repeated-supertrait-ambig.rs:38:27
4040 |
4141LL | CompareTo::same_as(c, 22)
42- | ------------------ ^ the trait `CompareTo<i32>` is not implemented for `C`
42+ | ------------------ ^ ^ the trait `CompareTo<i32>` is not implemented for `C`
4343 | |
4444 | required by a bound introduced by this call
4545 |
@@ -49,12 +49,12 @@ LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
4949 | ++++++++++++++++
5050
5151error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
52- --> $DIR/repeated-supertrait-ambig.rs:42:16
52+ --> $DIR/repeated-supertrait-ambig.rs:42:31
5353 |
5454LL | assert_eq!(22_i64.same_as(22), true);
55- | ^^^^^^ ------- required by a bound introduced by this call
56- | |
57- | the trait `CompareTo<i32>` is not implemented for `i64`
55+ | ------- ^^ the trait `CompareTo<i32>` is not implemented for `i64`
56+ | |
57+ | required by a bound introduced by this call
5858 |
5959 = help: the following other types implement trait `CompareTo<T>`:
6060 <i64 as CompareTo<i64>>
0 commit comments