rust/src/test/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr

17 lines
437 B
Plaintext
Raw Normal View History

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
|
LL | impl<'f> Foo<'f> { //~ ERROR `'f` only used once
| ^^ -- ...is used only here
| |
| this lifetime...
2018-05-03 18:43:28 -04:00
|
note: lint level 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)]
| ^^^^^^^^^^^^^^^^^^^^
2018-05-03 18:43:28 -04:00
error: aborting due to previous error