]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/higher-ranked-projection.bad.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / associated-types / higher-ranked-projection.bad.stderr
CommitLineData
b7449926 1error[E0271]: type mismatch resolving `for<'a> <&'a _ as Mirror>::Image == _`
0731742a 2 --> $DIR/higher-ranked-projection.rs:25:5
b7449926 3 |
e1599b0c 4LL | fn foo<U, T>(_t: T)
ba9703b0 5 | --- required by a bound in this
e1599b0c
XL
6LL | where for<'a> &'a T: Mirror<Image=U>
7 | ------- required by this bound in `foo`
8...
b7449926
XL
9LL | foo(());
10 | ^^^ expected bound lifetime parameter 'a, found concrete lifetime
b7449926
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0271`.