summary refs log tree commit diff
path: root/src/test/ui/span/loan-extend.stderr
blob: 280ddd6581a6811d024bdf34b52c8c9063babff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0597]: `short` does not live long enough
  --> $DIR/loan-extend.rs:21:1
   |
19 |     long = borrow(&mut short);
   |                        ----- borrow occurs here
20 |
21 | }
   | ^ `short` dropped here while still borrowed
   |
   = note: values in a scope are dropped in the opposite order they are created

error: aborting due to previous error