]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / regions / regions-variance-contravariant-use-covariant-in-second-position.stderr
CommitLineData
b7449926 1error[E0623]: lifetime mismatch
0bf4aa26 2 --> $DIR/regions-variance-contravariant-use-covariant-in-second-position.rs:35:30
b7449926
XL
3 |
4LL | fn use_<'short,'long>(c: S<'long, 'short>,
5 | ----------------
6 | |
7 | this type is declared with multiple lifetimes...
8...
9LL | let _: S<'long, 'long> = c; //~ ERROR E0623
10 | ^ ...but data with one lifetime flows into the other here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0623`.