Add Limitations section

This commit is contained in:
Alessio Cosenza 2023-05-29 11:24:36 +02:00
parent 29ab954a2b
commit a9b468f2b5
No known key found for this signature in database
GPG Key ID: 785AB79082BB23C2

View File

@ -13,6 +13,14 @@ declare_clippy_lint! {
/// Code without type annotations is shorter and in most cases
/// more idiomatic and easier to modify.
///
/// ### Limitations
/// This lint doesn't support:
///
/// - Generics
/// - Refs returned from anything else than a `MethodCall`
/// - Complex types (tuples, arrays, etc...)
/// - `Path` to anything else than a primitive type.
///
/// ### Example
/// ```rust
/// let foo: String = String::new();