We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6bf1f commit 9751cbaCopy full SHA for 9751cba
clippy_lints/src/let_underscore.rs
@@ -79,12 +79,20 @@ declare_clippy_lint! {
79
/// impl Drop for Droppable {
80
/// fn drop(&mut self) {}
81
/// }
82
- /// let _ = Droppable;
+ /// {
83
+ /// let _ = Droppable;
84
+ /// // ^ dropped here
85
+ /// /* more code */
86
+ /// }
87
/// ```
88
///
89
/// Good:
90
/// ```rust,ignore
- /// let _droppable = Droppable;
91
92
+ /// let _droppable = Droppable;
93
94
+ /// // dropped at end of scope
95
96
97
pub LET_UNDERSCORE_DROP,
98
correctness,
0 commit comments