Skip to content

Commit a9b468f

Browse files
committed
Add Limitations section
1 parent 29ab954 commit a9b468f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clippy_lints/src/redundant_type_annotations.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ declare_clippy_lint! {
1313
/// Code without type annotations is shorter and in most cases
1414
/// more idiomatic and easier to modify.
1515
///
16+
/// ### Limitations
17+
/// This lint doesn't support:
18+
///
19+
/// - Generics
20+
/// - Refs returned from anything else than a `MethodCall`
21+
/// - Complex types (tuples, arrays, etc...)
22+
/// - `Path` to anything else than a primitive type.
23+
///
1624
/// ### Example
1725
/// ```rust
1826
/// let foo: String = String::new();

0 commit comments

Comments
 (0)