2018-05-03 22:43:28 +00:00
|
|
|
error: lifetime parameter `'g` only used once
|
|
|
|
--> $DIR/one-use-in-trait-method-argument.rs:25:13
|
|
|
|
|
|
|
|
|
LL | fn next<'g>(&'g mut self) -> Option<Self::Item> { //~ ERROR `'g` 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-trait-method-argument.rs:14:9
|
|
|
|
|
|
2018-05-18 22:13:53 +00:00
|
|
|
LL | #![deny(single_use_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2018-10-28 06:40:56 +00:00
|
|
|
help: elide the single-use lifetime
|
|
|
|
|
|
|
|
|
LL | fn next(&mut self) -> Option<Self::Item> { //~ ERROR `'g` only used once
|
|
|
|
| ----
|
2018-05-03 22:43:28 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|