1 error: lifetime parameter `'g` only used once
2 --> $DIR/one-use-in-trait-method-argument.rs:15:13
4 LL | fn next<'g>(&'g mut self) -> Option<Self::Item> {
5 | ^^ -- ...is used only here
9 note: the lint level is defined here
10 --> $DIR/one-use-in-trait-method-argument.rs:4:9
12 LL | #![deny(single_use_lifetimes)]
13 | ^^^^^^^^^^^^^^^^^^^^
14 help: elide the single-use lifetime
16 LL - fn next<'g>(&'g mut self) -> Option<Self::Item> {
17 LL + fn next(&mut self) -> Option<Self::Item> {
20 error: aborting due to previous error