os-rust/src/test/ui/error-codes/E0271.stderr

13 lines
426 B
Text
Raw Normal View History

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
|
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-03-09 15:03:44 +03:00
LL | foo(3_i8);
| ^^^ 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`.