]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.nll.stderr
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / test / ui / regions / regions-bounded-method-type-parameters-cross-crate.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/regions-bounded-method-type-parameters-cross-crate.rs:30:7
3    |
4 LL |     a.bigger_region(b) //~ ERROR 30:7: 30:20: lifetime mismatch [E0623]
5    |       ^^^^^^^^^^^^^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/regions-bounded-method-type-parameters-cross-crate.rs:30:5
9    |
10 LL | fn call_bigger_region<'x, 'y>(a: Inv<'x>, b: Inv<'y>) {
11    |                       --  -- lifetime `'y` defined here
12    |                       |
13    |                       lifetime `'x` defined here
14 LL |     // Here the value provided for 'y is 'y, and hence 'y:'x does not hold.
15 LL |     a.bigger_region(b) //~ ERROR 30:7: 30:20: lifetime mismatch [E0623]
16    |     ^^^^^^^^^^^^^^^^^^ argument requires that `'y` must outlive `'x`
17
18 error: aborting due to previous error
19