fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
233 B10 linesraw
1#![warn(clippy::filter_next)]
2#![allow(clippy::useless_vec)]
3
4/// Checks implementation of `FILTER_NEXT` lint.
5fn main() {
6    let v = vec![3, 2, 1, 0, -1, -2, -3];
7
8    // Single-line case.
9    let _ = v.iter().find(|&x| *x < 0);
10}