]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.nll.stderr
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-fn-body.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:12
3    |
4 LL |     let z: I::A = if cond { x } else { y };
5    |            ^^^^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:29
9    |
10 LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
11    |        --  -- lifetime `'b` defined here
12    |        |
13    |        lifetime `'a` defined here
14 ...
15 LL |     let z: I::A = if cond { x } else { y };
16    |                             ^ assignment requires that `'a` must outlive `'b`
17
18 error: unsatisfied lifetime constraints
19   --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:40
20    |
21 LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
22    |        --  -- lifetime `'b` defined here
23    |        |
24    |        lifetime `'a` defined here
25 ...
26 LL |     let z: I::A = if cond { x } else { y };
27    |                                        ^ assignment requires that `'b` must outlive `'a`
28
29 error: aborting due to 2 previous errors
30