fork/rust

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

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

master
950 B35 linesraw
1error: lifetime parameter `'f` only used once
2  --> $DIR/one-use-in-inherent-method-argument.rs:11:6
3   |
4LL | impl<'f> Foo<'f> {
5   |      ^^      -- ...is used only here
6   |      |
7   |      this lifetime...
8   |
9note: the lint level is defined here
10  --> $DIR/one-use-in-inherent-method-argument.rs:1:9
11   |
12LL | #![deny(single_use_lifetimes)]
13   |         ^^^^^^^^^^^^^^^^^^^^
14help: elide the single-use lifetime
15   |
16LL - impl<'f> Foo<'f> {
17LL + impl Foo<'_> {
18   |
19
20error: lifetime parameter `'a` only used once
21  --> $DIR/one-use-in-inherent-method-argument.rs:13:19
22   |
23LL |     fn inherent_a<'a>(&self, data: &'a u32) {
24   |                   ^^                -- ...is used only here
25   |                   |
26   |                   this lifetime...
27   |
28help: elide the single-use lifetime
29   |
30LL -     fn inherent_a<'a>(&self, data: &'a u32) {
31LL +     fn inherent_a(&self, data: &u32) {
32   |
33
34error: aborting due to 2 previous errors
35