]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/unused-lifetime.stderr
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / async-await / unused-lifetime.stderr
1 error: lifetime parameter `'a` never used
2   --> $DIR/unused-lifetime.rs:8:35
3    |
4 LL | async fn async_wrong_without_args<'a>() {}
5    |                                  -^^- help: elide the unused lifetime
6    |
7 note: the lint level is defined here
8   --> $DIR/unused-lifetime.rs:6:9
9    |
10 LL | #![deny(unused_lifetimes)]
11    |         ^^^^^^^^^^^^^^^^
12
13 error: lifetime parameter `'a` never used
14   --> $DIR/unused-lifetime.rs:10:33
15    |
16 LL | async fn async_wrong_1_lifetime<'a>(_: &i32) {}
17    |                                -^^- help: elide the unused lifetime
18
19 error: lifetime parameter `'b` never used
20   --> $DIR/unused-lifetime.rs:12:38
21    |
22 LL | async fn async_wrong_2_lifetimes<'a, 'b>(_: &'a i32, _: &i32) {}
23    |                                    --^^
24    |                                    |
25    |                                    help: elide the unused lifetime
26
27 error: lifetime parameter `'a` never used
28   --> $DIR/unused-lifetime.rs:23:23
29    |
30 LL | fn wrong_without_args<'a>() {}
31    |                      -^^- help: elide the unused lifetime
32
33 error: lifetime parameter `'a` never used
34   --> $DIR/unused-lifetime.rs:25:21
35    |
36 LL | fn wrong_1_lifetime<'a>(_: &i32) {}
37    |                    -^^- help: elide the unused lifetime
38
39 error: lifetime parameter `'b` never used
40   --> $DIR/unused-lifetime.rs:27:26
41    |
42 LL | fn wrong_2_lifetimes<'a, 'b>(_: &'a i32, _: &i32) {}
43    |                        --^^
44    |                        |
45    |                        help: elide the unused lifetime
46
47 error: aborting due to 6 previous errors
48