]>
Commit | Line | Data |
---|---|---|
f035d41b | 1 | error[E0308]: mismatched types |
923072b8 | 2 | --> $DIR/higher-ranked-projection.rs:23:5 |
b7449926 XL |
3 | | |
4 | LL | foo(()); | |
923072b8 | 5 | | ^^^^^^^ one type is more general than the other |
f035d41b | 6 | | |
94222f64 | 7 | = note: expected reference `&'a ()` |
04454e1e | 8 | found reference `&()` |
5869c6ff | 9 | note: the lifetime requirement is introduced here |
923072b8 | 10 | --> $DIR/higher-ranked-projection.rs:14:33 |
5869c6ff XL |
11 | | |
12 | LL | where for<'a> &'a T: Mirror<Image=U> | |
13 | | ^^^^^^^ | |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
f035d41b | 17 | For more information about this error, try `rustc --explain E0308`. |