]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/higher-ranked-projection.bad.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / higher-ranked-projection.bad.stderr
1 error[E0308]: mismatched types
2   --> $DIR/higher-ranked-projection.rs:23:5
3    |
4 LL |     foo(());
5    |     ^^^^^^^ one type is more general than the other
6    |
7    = note: expected reference `&'a ()`
8               found reference `&()`
9 note: the lifetime requirement is introduced here
10   --> $DIR/higher-ranked-projection.rs:14:33
11    |
12 LL |     where for<'a> &'a T: Mirror<Image=U>
13    |                                 ^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.