fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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