1 error: lifetime parameter `'f` only used once
2 --> $DIR/one-use-in-inherent-method-argument.rs:11:6
4 LL | impl<'f> Foo<'f> {
5 | ^^ -- ...is used only here
9 note: the lint level is defined here
10 --> $DIR/one-use-in-inherent-method-argument.rs:1:9
12 LL | #![deny(single_use_lifetimes)]
13 | ^^^^^^^^^^^^^^^^^^^^
14 help: elide the single-use lifetime
16 LL - impl<'f> Foo<'f> {
20 error: lifetime parameter `'a` only used once
21 --> $DIR/one-use-in-inherent-method-argument.rs:13:19
23 LL | fn inherent_a<'a>(&self, data: &'a u32) {
24 | ^^ -- ...is used only here
28 help: elide the single-use lifetime
30 LL - fn inherent_a<'a>(&self, data: &'a u32) {
31 LL + fn inherent_a(&self, data: &u32) {
34 error: aborting due to 2 previous errors