]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/higher-ranked-projection.bad.nll.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / associated-types / higher-ranked-projection.bad.nll.stderr
CommitLineData
94222f64 1error[E0308]: mismatched types
f035d41b
XL
2 --> $DIR/higher-ranked-projection.rs:25:5
3 |
4LL | foo(());
94222f64
XL
5 | ^^^^^^^ one type is more general than the other
6 |
7 = note: expected reference `&'a ()`
8 found reference `&()`
c295e0f8
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 | ^^^^^^^
f035d41b
XL
14
15error: aborting due to previous error
16
94222f64 17For more information about this error, try `rustc --explain E0308`.