]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-variance-covariant-use-contravariant.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-variance-covariant-use-contravariant.stderr
1 error: lifetime may not live long enough
2 --> $DIR/regions-variance-covariant-use-contravariant.rs:23:12
3 |
4 LL | fn use_<'short,'long>(c: Covariant<'long>,
5 | ------ ----- lifetime `'long` defined here
6 | |
7 | lifetime `'short` defined here
8 ...
9 LL | let _: Covariant<'short> = c;
10 | ^^^^^^^^^^^^^^^^^ type annotation requires that `'short` must outlive `'long`
11 |
12 = help: consider adding the following bound: `'short: 'long`
13
14 error: aborting due to previous error
15