]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0271.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / error-codes / E0271.stderr
1 error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
2   --> $DIR/E0271.rs:10:5
3    |
4 LL |     foo(3_i8);
5    |     ^^^ expected `u32`, found `&str`
6    |
7 note: required by a bound in `foo`
8   --> $DIR/E0271.rs:3:32
9    |
10 LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> {
11    |                                ^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0271`.