]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/regions-close-over-borrowed-ref-in-obj.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / span / regions-close-over-borrowed-ref-in-obj.stderr
1 error[E0716]: temporary value dropped while borrowed
2   --> $DIR/regions-close-over-borrowed-ref-in-obj.rs:12:27
3    |
4 LL |         let ss: &isize = &id(1);
5    |                           ^^^^^ creates a temporary value which is freed while still in use
6 ...
7 LL |     }
8    |     - temporary value is freed at the end of this statement
9 LL | }
10    | - borrow might be used here, when `blah` is dropped and runs the destructor for type `Box<dyn Foo>`
11    |
12    = note: consider using a `let` binding to create a longer lived value
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0716`.