Add more tests for default_numeric_fallback

This commit is contained in:
Yoshitomo Nakanishi
2021-02-15 23:33:27 +09:00
parent 0198ac7bdd
commit fb91c76586
3 changed files with 172 additions and 66 deletions

View File

@@ -27,7 +27,7 @@ declare_clippy_lint! {
/// **Why is this bad?** For those who are very careful about types, default numeric fallback
/// can be a pitfall that cause unexpected runtime behavior.
///
/// **Known problems:** None.
/// **Known problems:** This lint can only be allowed at the function level or above.
///
/// **Example:**
/// ```rust