]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.nll.stderr
Change compare mode to use -Zborrowck=mir
[rust.git] / src / test / ui / regions / regions-bounded-method-type-parameters-cross-crate.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-bounded-method-type-parameters-cross-crate.rs:20:5
3    |
4 LL | fn call_bigger_region<'x, 'y>(a: Inv<'x>, b: Inv<'y>) {
5    |                       --  -- lifetime `'y` defined here
6    |                       |
7    |                       lifetime `'x` defined here
8 LL |     // Here the value provided for 'y is 'y, and hence 'y:'x does not hold.
9 LL |     a.bigger_region(b)
10    |     ^^^^^^^^^^^^^^^^^^ argument requires that `'y` must outlive `'x`
11
12 error: aborting due to previous error
13