]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0623]: lifetime mismatch |
0bf4aa26 | 2 | --> $DIR/regions-variance-contravariant-use-covariant-in-second-position.rs:35:30 |
b7449926 XL |
3 | | |
4 | LL | fn use_<'short,'long>(c: S<'long, 'short>, | |
5 | | ---------------- | |
6 | | | | |
7 | | this type is declared with multiple lifetimes... | |
8 | ... | |
9 | LL | let _: S<'long, 'long> = c; //~ ERROR E0623 | |
10 | | ^ ...but data with one lifetime flows into the other here | |
11 | ||
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0623`. |