rust/tests/ui/single-use-lifetime/one-use-in-trait-method-argument.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
627 B
Plaintext
Raw Normal View History

2018-05-03 18:43:28 -04:00
error: lifetime parameter `'g` only used once
2018-12-25 08:56:47 -07:00
--> $DIR/one-use-in-trait-method-argument.rs:15:13
2018-05-03 18:43:28 -04:00
|
2019-03-09 15:03:44 +03:00
LL | fn next<'g>(&'g mut self) -> Option<Self::Item> {
| ^^ -- ...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-trait-method-argument.rs:4:9
2018-05-03 18:43:28 -04:00
|
2018-05-19 01:13:53 +03:00
LL | #![deny(single_use_lifetimes)]
| ^^^^^^^^^^^^^^^^^^^^
help: elide the single-use lifetime
|
LL - fn next<'g>(&'g mut self) -> Option<Self::Item> {
LL + fn next(&mut self) -> Option<Self::Item> {
2022-06-08 20:34:57 +03:00
|
2018-05-03 18:43:28 -04:00
error: aborting due to previous error