1 #![deny(single_use_lifetimes)]
3 #![allow(unused_variables)]
5 // Test that we DO NOT warn for a lifetime used just once in a return type,
6 // where that return type is in an inherent method.
12 impl<'f> Foo<'f> { //~ ERROR `'f` only used once
13 fn inherent_a<'a>(&self) -> &'a u32 { // OK for 'a