]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/iter_not_returning_iterator.stderr
Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa
[rust.git] / src / tools / clippy / tests / ui / iter_not_returning_iterator.stderr
1 error: this method is named `iter` but its return type does not implement `Iterator`
2   --> $DIR/iter_not_returning_iterator.rs:30:5
3    |
4 LL |     fn iter(&self) -> Counter2 {
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::iter-not-returning-iterator` implied by `-D warnings`
8
9 error: this method is named `iter_mut` but its return type does not implement `Iterator`
10   --> $DIR/iter_not_returning_iterator.rs:34:5
11    |
12 LL |     fn iter_mut(&self) -> Counter2 {
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16