2018-02-07 19:35:35 -08:00
|
|
|
error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0271.rs:10:5
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> {
|
2020-04-05 22:15:06 -07:00
|
|
|
| ------------------ required by this bound in `foo`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo(3_i8);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^ expected `u32`, found `&str`
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0271`.
|