summaryrefslogtreecommitdiffstats
path: root/tests/ui/single-use-lifetime/zero-uses-in-fn.stderr
blob: 59c0164e324145e2dac1d88f6d51056d7e58ec52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
error: lifetime parameter `'a` never used
  --> $DIR/zero-uses-in-fn.rs:8:14
   |
LL | fn september<'a>() {}
   |             -^^- help: elide the unused lifetime
   |
note: the lint level is defined here
  --> $DIR/zero-uses-in-fn.rs:5:9
   |
LL | #![deny(unused_lifetimes)]
   |         ^^^^^^^^^^^^^^^^

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 {
   |            ^^--
   |            |
   |            help: elide the unused lifetime

error: lifetime parameter `'b` never used
  --> $DIR/zero-uses-in-fn.rs:18:17
   |
LL | fn november<'a, 'b>(s: &'a str) -> &'a str {
   |               --^^
   |               |
   |               help: elide the unused lifetime

error: aborting due to 3 previous errors