]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-fn-in-const-c.stderr
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / borrowck / borrowck-fn-in-const-c.stderr
1 error[E0713]: borrow may still be in use when destructor runs
2   --> $DIR/borrowck-fn-in-const-c.rs:17:16
3    |
4 LL |         return &local.inner;
5    |                ^^^^^^^^^^^^ returning this value requires that `local.inner` is borrowed for `'static`
6 LL |     }
7    |     - here, drop of `local` needs exclusive access to `local.inner`, because the type `DropString` implements the `Drop` trait
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0713`.