]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/map_flatten.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / map_flatten.stderr
index d4ce44490d1cef082b2a5702e956888cf1225b26..931ef9b6248841aaf2d1e42671119b714e213b9b 100644 (file)
@@ -1,10 +1,10 @@
 error: called `map(..).flatten()` on an `Iterator`. This is more succinctly expressed by calling `.flat_map(..)`
--> $DIR/map_flatten.rs:6:21
-  |
-6 |     let _: Vec<_> = vec![5_i8; 6].into_iter().map(|x| 0..x).flatten().collect();
-  |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try using flat_map instead: `vec![5_i8; 6].into_iter().flat_map(|x| 0..x)`
-  |
-  = note: `-D clippy::map-flatten` implied by `-D warnings`
 --> $DIR/map_flatten.rs:14:21
+   |
+LL |     let _: Vec<_> = vec![5_i8; 6].into_iter().map(|x| 0..x).flatten().collect();
+   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try using flat_map instead: `vec![5_i8; 6].into_iter().flat_map(|x| 0..x)`
+   |
+   = note: `-D clippy::map-flatten` implied by `-D warnings`
 
 error: aborting due to previous error