summary refs log tree commit diff
path: root/src/test/ui/span/regions-escape-loop-via-variable.stderr
blob: 09f2154905f38d7f536c43e7c5db0a500e232e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: `x` does not live long enough
  --> $DIR/regions-escape-loop-via-variable.rs:22:5
   |
21 |         p = &x; //~ ERROR `x` does not live long enough
   |              - borrow occurs here
22 |     }
   |     ^ `x` dropped here while still borrowed
23 | }
   | - borrowed value needs to live until here

error: aborting due to previous error