]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-infer-covariance-due-to-decl.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-infer-covariance-due-to-decl.stderr
1 error[E0623]: lifetime mismatch
2 --> $DIR/regions-infer-covariance-due-to-decl.rs:22:32
3 |
4 LL | fn use_<'short,'long>(c: Covariant<'long>,
5 | ----------------
6 LL | s: &'short isize,
7 | ------------- these two types are declared with different lifetimes...
8 ...
9 LL | let _: Covariant<'short> = c;
10 | ^ ...but data from `s` flows into `c` here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0623`.