]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-variance-invariant-use-contravariant.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-variance-invariant-use-contravariant.base.stderr
CommitLineData
b7449926 1error[E0623]: lifetime mismatch
04454e1e 2 --> $DIR/regions-variance-invariant-use-contravariant.rs:24:32
b7449926
XL
3 |
4LL | fn use_<'short,'long>(c: Invariant<'long>,
5 | ----------------
6LL | s: &'short isize,
7 | ------------- these two types are declared with different lifetimes...
8...
532ac7d7 9LL | let _: Invariant<'short> = c;
b7449926
XL
10 | ^ ...but data from `s` flows into `c` here
11
12error: aborting due to previous error
13
60c5eb7d 14For more information about this error, try `rustc --explain E0623`.