]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-cell-is-invariant.stderr
Auto merge of #66408 - nnethercote:greedy-process_obligations, r=nmatsakis
[rust.git] / src / test / ui / variance / variance-cell-is-invariant.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/variance-cell-is-invariant.rs:14:25
3    |
4 LL | fn use_<'short,'long>(c: Foo<'short>,
5    |                          ----------- these two types are declared with different lifetimes...
6 LL |                       s: &'short isize,
7 LL |                       l: &'long isize,
8    |                          ------------
9 LL |                       _where:Option<&'short &'long ()>) {
10 LL |     let _: Foo<'long> = c;
11    |                         ^ ...but data from `c` flows into `l` here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0623`.