]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/methods.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / methods.stderr
CommitLineData
f20569fa
XL
1error: methods called `new` usually return `Self`
2 --> $DIR/methods.rs:105: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:126: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