]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods_fixable.fixed
Improved shared_code_in_if_blocks message and added test stderrs
[rust.git] / tests / ui / methods_fixable.fixed
1 // run-rustfix
2
3 #![warn(clippy::filter_next)]
4
5 /// Checks implementation of `FILTER_NEXT` lint.
6 fn main() {
7     let v = vec![3, 2, 1, 0, -1, -2, -3];
8
9     // Single-line case.
10     let _ = v.iter().find(|&x| *x < 0);
11 }