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