error[E0597]: `n` does not live long enough --> tests/ui/borrowchk-fail.rs:6:45 | 5 | let n = 32; | - binding `n` declared here 6 | Dst::::new(&n) | ------------------------------------^^- | | | | | borrowed value does not live long enough | a temporary with access to the borrow is created here ... 7 | }; | -- ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DstBase` | | | `n` dropped here while still borrowed | help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped | 6 | Dst::::new(&n); | +