]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / regions / regions-variance-contravariant-use-covariant-in-second-position.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-variance-contravariant-use-covariant-in-second-position.rs:25:12
3    |
4 LL | fn use_<'short,'long>(c: S<'long, 'short>,
5    |         ------ ----- lifetime `'long` defined here
6    |         |
7    |         lifetime `'short` defined here
8 ...
9 LL |     let _: S<'long, 'long> = 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