]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/flat_map_identity.fixed
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / flat_map_identity.fixed
CommitLineData
f20569fa
XL
1// run-rustfix
2
3#![allow(unused_imports)]
4#![warn(clippy::flat_map_identity)]
5
6use std::convert;
7
8fn main() {
9 let iterator = [[0, 1], [2, 3], [4, 5]].iter();
10 let _ = iterator.flatten();
11
12 let iterator = [[0, 1], [2, 3], [4, 5]].iter();
13 let _ = iterator.flatten();
14}