fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
798 B30 linesraw
1error: lifetime parameter `'a` never used
2  --> $DIR/zero-uses-in-fn.rs:8:14
3   |
4LL | fn september<'a>() {}
5   |             -^^- help: elide the unused lifetime
6   |
7note: the lint level is defined here
8  --> $DIR/zero-uses-in-fn.rs:5:9
9   |
10LL | #![deny(unused_lifetimes)]
11   |         ^^^^^^^^^^^^^^^^
12
13error: lifetime parameter `'a` never used
14  --> $DIR/zero-uses-in-fn.rs:12:12
15   |
16LL | fn october<'a, 'b, T>(s: &'b T) -> &'b T {
17   |            ^^--
18   |            |
19   |            help: elide the unused lifetime
20
21error: lifetime parameter `'b` never used
22  --> $DIR/zero-uses-in-fn.rs:18:17
23   |
24LL | fn november<'a, 'b>(s: &'a str) -> &'a str {
25   |               --^^
26   |               |
27   |               help: elide the unused lifetime
28
29error: aborting due to 3 previous errors
30