blob: 898629d8ab98266ff741c2b4866abc926e7eb56a [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/regions-bounded-method-type-parameters-cross-crate.rs:30:7
|
LL | fn call_bigger_region<'x, 'y>(a: Inv<'x>, b: Inv<'y>) {
| ------- ------- these two types are declared with different lifetimes...
LL | // Here the value provided for 'y is 'y, and hence 'y:'x does not hold.
LL | a.bigger_region(b) //~ ERROR 30:7: 30:20: lifetime mismatch [E0623]
| ^^^^^^^^^^^^^ ...but data from `b` flows into `a` here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.