fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.0 KiB32 linesraw
1error: lifetime parameter `'a` never used
2  --> $DIR/unused-lifetime.rs:26:40
3   |
4LL | pub async fn func_with_unused_lifetime<'a>(s: &'a str) {
5   |                                        ^^
6   |
7note: lint level defined here
8  --> $DIR/unused-lifetime.rs:7:9
9   |
10LL | #![deny(unused_lifetimes)]
11   |         ^^^^^^^^^^^^^^^^
12
13error: lifetime parameter `'a` never used
14  --> $DIR/unused-lifetime.rs:31:44
15   |
16LL | pub async fn func_with_two_unused_lifetime<'a, 'b>(s: &'a str, t: &'b str) {
17   |                                            ^^
18
19error: lifetime parameter `'b` never used
20  --> $DIR/unused-lifetime.rs:31:48
21   |
22LL | pub async fn func_with_two_unused_lifetime<'a, 'b>(s: &'a str, t: &'b str) {
23   |                                                ^^
24
25error: lifetime parameter `'c` never used
26  --> $DIR/unused-lifetime.rs:37:54
27   |
28LL | pub async fn func_with_unused_lifetime_in_two_params<'c>(s: &'c str, t: &'c str) {
29   |                                                      ^^
30
31error: aborting due to 4 previous errors
32