1 // Test that we DO NOT warn when lifetime name is used only
2 // once in a fn return type -- using `'_` is not legal there,
3 // as it must refer back to an argument.
5 // (Normally, using `'static` would be preferred, but there are
6 // times when that is not what you want.)
10 #![deny(single_use_lifetimes)]
12 // OK: used only in return type
13 fn b<'a>() -> &'a u32 {
18 impl Tfv<'_> for () {}
20 // Do NOT lint if used in return type.
21 pub fn i<'a>() -> impl Tfv<'a> {}