1 error: methods called `new` usually return `Self`
2 --> $DIR/methods.rs:104:5
4 LL | / fn new() -> i32 {
9 = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
11 error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
12 --> $DIR/methods.rs:125:13
14 LL | let _ = v.iter().filter(|&x| {
19 | |___________________________^
21 = note: `-D clippy::filter-next` implied by `-D warnings`
23 error: aborting due to 2 previous errors