]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/wf-method-late-bound-regions.nll.stderr
Rollup merge of #52695 - oli-obk:const_err_panic, r=petrochenkov
[rust.git] / src / test / ui / span / wf-method-late-bound-regions.nll.stderr
1 error[E0597]: `pointer` does not live long enough
2   --> $DIR/wf-method-late-bound-regions.rs:30:18
3    |
4 LL |         f2.xmute(&pointer)
5    |                  ^^^^^^^^ borrowed value does not live long enough
6 LL |     };
7    |     - `pointer` dropped here while still borrowed
8 LL |     //~^^ ERROR `pointer` does not live long enough
9 LL |     println!("{}", dangling);
10    |                    -------- borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.