mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Add Limitations
section
This commit is contained in:
parent
29ab954a2b
commit
a9b468f2b5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user