]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/suspicious_map.stderr
iterate List by value
[rust.git] / tests / ui / suspicious_map.stderr
index e6588f4691a1e53a8f96c6d00e3d1f33d503a32c..e1b4ba40376f88d0904b96cf6c459e57bbbd56ee 100644 (file)
@@ -5,7 +5,7 @@ LL |     let _ = (0..3).map(|x| x + 2).count();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::suspicious-map` implied by `-D warnings`
-   = help: make sure you did not confuse `map` with `filter`
+   = help: make sure you did not confuse `map` with `filter` or `for_each`
 
 error: aborting due to previous error