]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-36537.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / issue-36537.stderr
1 error[E0597]: `a` does not live long enough
2   --> $DIR/issue-36537.rs:5:13
3    |
4 LL |         p = &a;
5    |             ^^ borrowed value does not live long enough
6 ...
7 LL |     }
8    |     - `a` dropped here while still borrowed
9 LL |     p.use_ref();
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`.