1 // Test that we DO warn for a lifetime on an impl used only in `&self`
4 #![deny(single_use_lifetimes)]
6 #![allow(unused_variables)]
12 impl<'f> Iterator for Foo<'f> {
15 fn next<'g>(&'g mut self) -> Option<Self::Item> { //~ ERROR `'g` only used once
16 //~^ HELP elide the single-use lifetime
22 // But we should not warn here.