fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied 2 --> $DIR/traits-repeated-supertrait-ambig.rs:26:7 3 | 4LL | c.same_as(22) 5 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts` 6 7error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied 8 --> $DIR/traits-repeated-supertrait-ambig.rs:30:7 9 | 10LL | c.same_as(22) 11 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C` 12 | 13help: consider further restricting this bound 14 | 15LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool { 16 | ^^^^^^^^^^^^^^^^ 17 18error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied 19 --> $DIR/traits-repeated-supertrait-ambig.rs:34:5 20 | 21LL | fn same_as(&self, t: T) -> bool; 22 | -------------------------------- required by `CompareTo::same_as` 23... 24LL | CompareToInts::same_as(c, 22) 25 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts` 26 27error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied 28 --> $DIR/traits-repeated-supertrait-ambig.rs:38:5 29 | 30LL | fn same_as(&self, t: T) -> bool; 31 | -------------------------------- required by `CompareTo::same_as` 32... 33LL | CompareTo::same_as(c, 22) 34 | ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C` 35 | 36help: consider further restricting this bound 37 | 38LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool { 39 | ^^^^^^^^^^^^^^^^ 40 41error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied 42 --> $DIR/traits-repeated-supertrait-ambig.rs:42:23 43 | 44LL | assert_eq!(22_i64.same_as(22), true); 45 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `i64` 46 | 47 = help: the following implementations were found: 48 <i64 as CompareTo<i64>> 49 <i64 as CompareTo<u64>> 50 51error: aborting due to 5 previous errors 52 53For more information about this error, try `rustc --explain E0277`.