1 #![deny(single_use_lifetimes)]
3 #![allow(unused_variables)]
5 // Test that we DO warn for a lifetime used only once in an impl, and that we
6 // don't warn for the anonymous lifetime.
12 impl<'f> Foo<'f> { //~ ERROR `'f` only used once
13 fn inherent_a(&self) {
18 fn inherent_b(&self) {}