error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32` | |
--> $DIR/E0271.rs:10:5 | |
| | |
LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { | |
| -------------------------------------------------- required by `foo` | |
... | |
LL | foo(3_i8); | |
| ^^^ expected reference, found u32 | |
| | |
= note: expected type `&'static str` | |
found type `u32` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0271`. |