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