]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-fn-in-const-c.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / 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`.