]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.nll.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / regions / regions-reborrow-from-shorter-mut-ref.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/regions-reborrow-from-shorter-mut-ref.rs:16:5
3    |
4 LL |     &mut **p //~ ERROR 16:5: 16:13: lifetime mismatch [E0623]
5    |     ^^^^^^^^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/regions-reborrow-from-shorter-mut-ref.rs:15:73
9    |
10 LL |   fn copy_borrowed_ptr<'a, 'b>(p: &'a mut &'b mut isize) -> &'b mut isize {
11    |  ______________________--__--_____________________________________________^
12    | |                      |   |
13    | |                      |   lifetime `'b` defined here
14    | |                      lifetime `'a` defined here
15 LL | |     &mut **p //~ ERROR 16:5: 16:13: lifetime mismatch [E0623]
16 LL | | }
17    | |_^ requires that `'a` must outlive `'b`
18
19 error: aborting due to previous error
20