Skip to content

Commit 48d310e

Browse files
committed
add documentation
1 parent 2ebe751 commit 48d310e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clippy_lints/src/only_used_in_recursion.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ declare_clippy_lint! {
4646
///
4747
/// For example, the argument `b` is only used in recursion, but the lint would not catch it.
4848
///
49+
/// List of some examples that can not be caught:
50+
/// - binary operation of non-primitive types
51+
/// - closure usage
52+
/// - some `break` relative operations
53+
/// - struct pattern binding
54+
///
4955
/// ### Example
5056
/// ```rust
5157
/// fn f(a: usize, b: usize) -> usize {

0 commit comments

Comments
 (0)