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