2018-05-03 17:43:28 -05:00
|
|
|
error: lifetime parameter `'f` only used once
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/one-use-in-inherent-method-return.rs:12:6
|
2018-05-03 17:43:28 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | impl<'f> Foo<'f> {
|
2018-06-21 20:17:42 -05:00
|
|
|
| ^^ -- ...is used only here
|
|
|
|
| |
|
|
|
|
| this lifetime...
|
2018-05-03 17:43:28 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/one-use-in-inherent-method-return.rs:1:9
|
2018-05-03 17:43:28 -05:00
|
|
|
|
|
2018-05-18 17:13:53 -05:00
|
|
|
LL | #![deny(single_use_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-05-10 14:15:30 -05:00
|
|
|
help: elide the single-use lifetime
|
|
|
|
|
|
|
|
|
LL - impl<'f> Foo<'f> {
|
|
|
|
LL + impl Foo<'_> {
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2018-05-03 17:43:28 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|