summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0271.stderr
blob: 8fcb68e434f80106659452d48037b60bc4ed714a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0271]: type mismatch resolving `<i8 as Trait>::AssociatedType == u32`
  --> $DIR/E0271.rs:10:5
   |
LL |     foo(3_i8); //~ ERROR E0271
   |     ^^^ expected reference, found u32
   |
   = note: expected type `&'static str`
              found type `u32`
note: required by `foo`
  --> $DIR/E0271.rs:3:1
   |
LL | fn foo<T>(t: T) where T: Trait<AssociatedType=u32> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0271`.