2 Checks for `let _ = <expr>`
3 where expr has a type that implements `Drop`
6 This statement immediately drops the initializer
7 expression instead of extending its lifetime to the end of the scope, which
8 is often not intended. To extend the expression's lifetime to the end of the
9 scope, use an underscore-prefixed name instead (i.e. _var). If you want to
10 explicitly drop the expression, `std::mem::drop` conveys your intention
11 better and is less error-prone.
16 let _ = DroppableItem;
25 let _droppable = DroppableItem;
27 // dropped at end of scope