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