2018-05-03 17:58:06 -05:00
|
|
|
error: lifetime parameter `'a` never used
|
2018-09-29 23:25:41 -05:00
|
|
|
--> $DIR/zero-uses-in-fn.rs:8:14
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
2018-09-29 23:25:41 -05:00
|
|
|
LL | fn september<'a>() {}
|
2018-10-28 01:40:56 -05:00
|
|
|
| -^^- help: elide the unused lifetime
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-09-29 23:25:41 -05:00
|
|
|
--> $DIR/zero-uses-in-fn.rs:5:9
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
2018-05-18 17:13:53 -05:00
|
|
|
LL | #![deny(unused_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-05-03 17:58:06 -05:00
|
|
|
|
2018-09-29 23:25:41 -05:00
|
|
|
error: lifetime parameter `'a` never used
|
|
|
|
--> $DIR/zero-uses-in-fn.rs:12:12
|
|
|
|
|
|
|
|
|
LL | fn october<'a, 'b, T>(s: &'b T) -> &'b T {
|
|
|
|
| ^^--
|
|
|
|
| |
|
2018-10-28 01:40:56 -05:00
|
|
|
| help: elide the unused lifetime
|
2018-09-29 23:25:41 -05:00
|
|
|
|
|
|
|
error: lifetime parameter `'b` never used
|
|
|
|
--> $DIR/zero-uses-in-fn.rs:18:17
|
|
|
|
|
|
2019-10-04 00:56:57 -05:00
|
|
|
LL | fn november<'a, 'b>(s: &'a str) -> &'a str {
|
2018-09-29 23:25:41 -05:00
|
|
|
| --^^
|
|
|
|
| |
|
2018-10-28 01:40:56 -05:00
|
|
|
| help: elide the unused lifetime
|
2018-09-29 23:25:41 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-05-03 17:58:06 -05:00
|
|
|
|