fork/rust

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

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

master
634 B16 linesraw
1error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
2  --> $DIR/methods_unfixable.rs:9:13
3   |
4LL |     let _ = iter.filter(|_| true).next();
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `iter.find(|_| true)`
6   |
7help: you will also need to make `iter` mutable, because `find` takes `&mut self`
8  --> $DIR/methods_unfixable.rs:8:9
9   |
10LL |     let iter = (0..10);
11   |         ^^^^
12   = note: `-D clippy::filter-next` implied by `-D warnings`
13   = help: to override `-D warnings` add `#[allow(clippy::filter_next)]`
14
15error: aborting due to previous error
16