summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-fn-in-const-c.stderr
blob: 1dda8d4186034218df0d55a1fd9d3513935ba9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0597]: `local.inner` does not live long enough
  --> $DIR/borrowck-fn-in-const-c.rs:27:17
   |
LL |         return &local.inner; //~ ERROR does not live long enough
   |                 ^^^^^^^^^^^ borrowed value does not live long enough
LL |     }
   |     - borrowed value only lives until here
   |
   = note: borrowed value must be valid for the static lifetime...

error: aborting due to previous error

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