summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-21114-kixunil.rs
blob: 666f89f356d04d920d97133df0b3eef0e9da79d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-pass

fn from_stdin(min: u64) -> Vec<u64> {
    use std::io::BufRead;

    let stdin = std::io::stdin();
    let stdin = stdin.lock();

    stdin.lines()
        .map(Result::unwrap)
        .map(|val| val.parse())
        .map(Result::unwrap)
        .filter(|val| *val >= min)
        .collect()
}

fn main() {}