]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.nll.stderr
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex2e-push-inference-variable-3.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/ex2e-push-inference-variable-3.rs:17:13
3    |
4 LL |     let b = Ref { data: y.data };
5    |             ^^^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/ex2e-push-inference-variable-3.rs:18:5
9    |
10 LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
11    |            --  -- lifetime `'c` defined here
12    |            |
13    |            lifetime `'b` defined here
14 ...
15 LL |     Vec::push(a, b);
16    |     ^^^^^^^^^^^^^^^ argument requires that `'c` must outlive `'b`
17
18 error: aborting due to previous error
19