]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | error: lifetime parameter `'a` only used once |
2 | --> $DIR/one-use-in-fn-argument-in-band.rs:11:10 | |
94b46f34 XL |
3 | | |
4 | LL | fn a(x: &'a u32, y: &'b u32) { | |
136023e0 XL |
5 | | ^^- |
6 | | | | |
7 | | this lifetime is only used here | |
8 | | help: elide the single-use lifetime | |
94b46f34 | 9 | | |
74b04a01 | 10 | note: the lint level is defined here |
0731742a | 11 | --> $DIR/one-use-in-fn-argument-in-band.rs:4:9 |
94b46f34 XL |
12 | | |
13 | LL | #![deny(single_use_lifetimes)] | |
14 | | ^^^^^^^^^^^^^^^^^^^^ | |
15 | ||
136023e0 XL |
16 | error: lifetime parameter `'b` only used once |
17 | --> $DIR/one-use-in-fn-argument-in-band.rs:11:22 | |
94b46f34 XL |
18 | | |
19 | LL | fn a(x: &'a u32, y: &'b u32) { | |
136023e0 XL |
20 | | ^^- |
21 | | | | |
22 | | this lifetime is only used here | |
23 | | help: elide the single-use lifetime | |
94b46f34 XL |
24 | |
25 | error: aborting due to 2 previous errors | |
26 |