]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/where_clauses_in_structs.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / where_clauses_in_structs.stderr
1 error: lifetime may not live long enough
2   --> $DIR/where_clauses_in_structs.rs:13:11
3    |
4 LL | fn bar<'a, 'b>(x: Cell<&'a u32>, y: Cell<&'b u32>) {
5    |        --  -- lifetime `'b` defined here
6    |        |
7    |        lifetime `'a` defined here
8 LL |     Foo { x, y };
9    |           ^ requires that `'a` must outlive `'b`
10    |
11    = help: consider adding the following bound: `'a: 'b`
12
13 error: aborting due to previous error
14