fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
780 B22 linesraw
1error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
2  --> $DIR/E0271.rs:10:9
3   |
4LL |     foo(3_i8);
5   |     --- ^^^^ type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
6   |     |
7   |     required by a bound introduced by this call
8   |
9note: expected this to be `u32`
10  --> $DIR/E0271.rs:7:43
11   |
12LL | impl Trait for i8 { type AssociatedType = &'static str; }
13   |                                           ^^^^^^^^^^^^
14note: required by a bound in `foo`
15  --> $DIR/E0271.rs:3:32
16   |
17LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> {
18   |                                ^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0271`.