error[E0308]: mismatched types
- --> $DIR/higher-ranked-projection.rs:25:5
+ --> $DIR/higher-ranked-projection.rs:23:5
|
LL | foo(());
- | ^^^ lifetime mismatch
+ | ^^^^^^^ one type is more general than the other
|
= note: expected reference `&'a ()`
found reference `&()`
note: the lifetime requirement is introduced here
- --> $DIR/higher-ranked-projection.rs:15:33
+ --> $DIR/higher-ranked-projection.rs:14:33
|
LL | where for<'a> &'a T: Mirror<Image=U>
| ^^^^^^^