2019-10-15 17:05:13 +00:00
|
|
|
error: lifetime parameter `'a` never used
|
2022-05-10 19:15:30 +00:00
|
|
|
--> $DIR/unused-lifetime.rs:8:35
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
2022-05-10 19:15:30 +00:00
|
|
|
LL | async fn async_wrong_without_args<'a>() {}
|
|
|
|
| -^^- help: elide the unused lifetime
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2022-05-10 19:15:30 +00:00
|
|
|
--> $DIR/unused-lifetime.rs:6:9
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: lifetime parameter `'a` never used
|
2022-05-10 19:15:30 +00:00
|
|
|
--> $DIR/unused-lifetime.rs:10:33
|
|
|
|
|
|
|
|
|
LL | async fn async_wrong_1_lifetime<'a>(_: &i32) {}
|
|
|
|
| -^^- help: elide the unused lifetime
|
|
|
|
|
|
|
|
error: lifetime parameter `'b` never used
|
|
|
|
--> $DIR/unused-lifetime.rs:12:38
|
|
|
|
|
|
|
|
|
LL | async fn async_wrong_2_lifetimes<'a, 'b>(_: &'a i32, _: &i32) {}
|
|
|
|
| --^^
|
|
|
|
| |
|
|
|
|
| help: elide the unused lifetime
|
|
|
|
|
|
|
|
error: lifetime parameter `'a` never used
|
|
|
|
--> $DIR/unused-lifetime.rs:23:23
|
|
|
|
|
|
|
|
|
LL | fn wrong_without_args<'a>() {}
|
|
|
|
| -^^- help: elide the unused lifetime
|
|
|
|
|
|
|
|
error: lifetime parameter `'a` never used
|
|
|
|
--> $DIR/unused-lifetime.rs:25:21
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
2020-12-04 05:06:53 +00:00
|
|
|
LL | fn wrong_1_lifetime<'a>(_: &i32) {}
|
|
|
|
| -^^- help: elide the unused lifetime
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
|
|
error: lifetime parameter `'b` never used
|
2022-05-10 19:15:30 +00:00
|
|
|
--> $DIR/unused-lifetime.rs:27:26
|
2019-10-15 17:05:13 +00:00
|
|
|
|
|
2020-12-04 05:06:53 +00:00
|
|
|
LL | fn wrong_2_lifetimes<'a, 'b>(_: &'a i32, _: &i32) {}
|
|
|
|
| --^^
|
|
|
|
| |
|
|
|
|
| help: elide the unused lifetime
|
2019-10-15 17:05:13 +00:00
|
|
|
|
2022-05-10 19:15:30 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2019-10-15 17:05:13 +00:00
|
|
|
|