summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/wf-method-late-bound-regions.stderr
blob: 6b0b008208f17145097e6eb6197b6ef54a679247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0597]: `pointer` does not live long enough
  --> $DIR/wf-method-late-bound-regions.rs:20:18
   |
LL |     let dangling = {
   |         -------- borrow later stored here
LL |         let pointer = Box::new(42);
LL |         f2.xmute(&pointer)
   |                  ^^^^^^^^ borrowed value does not live long enough
LL |     };
   |     - `pointer` dropped here while still borrowed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.