2018-05-03 22:43:28 +00:00
|
|
|
error: lifetime parameter `'a` only used once
|
|
|
|
--> $DIR/one-use-in-inherent-method-argument.rs:22:19
|
|
|
|
|
|
|
|
|
LL | fn inherent_a<'a>(&self, data: &'a u32) { //~ ERROR `'a` only used once
|
2018-06-22 01:17:42 +00:00
|
|
|
| ^^ -- ...is used only here
|
|
|
|
| |
|
|
|
|
| this lifetime...
|
2018-05-03 22:43:28 +00:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/one-use-in-inherent-method-argument.rs:11:9
|
|
|
|
|
|
2018-05-18 22:13:53 +00:00
|
|
|
LL | #![deny(single_use_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2018-05-03 22:43:28 +00:00
|
|
|
|
|
|
|
error: lifetime parameter `'f` only used once
|
|
|
|
--> $DIR/one-use-in-inherent-method-argument.rs:21:6
|
|
|
|
|
|
|
|
|
LL | impl<'f> Foo<'f> { //~ ERROR `'f` only used once
|
2018-06-22 01:17:42 +00:00
|
|
|
| ^^ -- ...is used only here
|
|
|
|
| |
|
|
|
|
| this lifetime...
|
2018-05-03 22:43:28 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|