1error: methods called `new` usually return `Self`
2  --> $DIR/methods.rs:104:5
3   |
4LL | /     fn new() -> i32 {
5LL | |         0
6LL | |     }
7   | |_____^
8   |
9   = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
10
11error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
12  --> $DIR/methods.rs:125:13
13   |
14LL |       let _ = v.iter().filter(|&x| {
15   |  _____________^
16LL | |                                 *x < 0
17LL | |                             }
18LL | |                    ).next();
19   | |___________________________^
20   |
21   = note: `-D clippy::filter-next` implied by `-D warnings`
22
23error: aborting due to 2 previous errors
24
25