]> git.proxmox.com Git - rustc.git/blame - src/test/ui/single-use-lifetime/one-use-in-fn-argument-in-band.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / single-use-lifetime / one-use-in-fn-argument-in-band.stderr
CommitLineData
136023e0
XL
1error: lifetime parameter `'a` only used once
2 --> $DIR/one-use-in-fn-argument-in-band.rs:11:10
94b46f34
XL
3 |
4LL | 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 10note: the lint level is defined here
0731742a 11 --> $DIR/one-use-in-fn-argument-in-band.rs:4:9
94b46f34
XL
12 |
13LL | #![deny(single_use_lifetimes)]
14 | ^^^^^^^^^^^^^^^^^^^^
15
136023e0
XL
16error: lifetime parameter `'b` only used once
17 --> $DIR/one-use-in-fn-argument-in-band.rs:11:22
94b46f34
XL
18 |
19LL | 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
25error: aborting due to 2 previous errors
26