]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/higher-ranked-projection.bad.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / associated-types / higher-ranked-projection.bad.stderr
CommitLineData
f035d41b 1error[E0308]: mismatched types
0731742a 2 --> $DIR/higher-ranked-projection.rs:25:5
b7449926
XL
3 |
4LL | foo(());
5869c6ff 5 | ^^^ lifetime mismatch
f035d41b
XL
6 |
7 = note: expected type `&'a ()`
8 found type `&()`
5869c6ff
XL
9note: the lifetime requirement is introduced here
10 --> $DIR/higher-ranked-projection.rs:15:33
11 |
12LL | where for<'a> &'a T: Mirror<Image=U>
13 | ^^^^^^^
b7449926
XL
14
15error: aborting due to previous error
16
f035d41b 17For more information about this error, try `rustc --explain E0308`.