mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-07 12:48:30 +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
|
/// Code without type annotations is shorter and in most cases
|
||||||
/// more idiomatic and easier to modify.
|
/// 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
|
/// ### Example
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let foo: String = String::new();
|
/// let foo: String = String::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user