1 error: lifetime parameter `'a` only used once
2 --> $DIR/one-use-in-fn-argument.rs:8:6
4 LL | fn a<'a>(x: &'a u32) {
5 | ^^ -- ...is used only here
9 note: the lint level is defined here
10 --> $DIR/one-use-in-fn-argument.rs:1:9
12 LL | #![deny(single_use_lifetimes)]
13 | ^^^^^^^^^^^^^^^^^^^^
14 help: elide the single-use lifetime
16 LL - fn a<'a>(x: &'a u32) {
20 error: lifetime parameter `'m` only used once
21 --> $DIR/one-use-in-fn-argument.rs:15:11
23 LL | fn center<'m>(_: Single<'m>) {}
24 | ^^ -- ...is used only here
28 help: elide the single-use lifetime
30 LL - fn center<'m>(_: Single<'m>) {}
31 LL + fn center(_: Single<'_>) {}
34 error: lifetime parameter `'y` only used once
35 --> $DIR/one-use-in-fn-argument.rs:17:13
37 LL | fn left<'x, 'y>(foo: Double<'x, 'y>) -> &'x u32 { foo.f }
38 | ^^ this lifetime... -- ...is used only here
40 help: elide the single-use lifetime
42 LL - fn left<'x, 'y>(foo: Double<'x, 'y>) -> &'x u32 { foo.f }
43 LL + fn left<'x>(foo: Double<'x, '_>) -> &'x u32 { foo.f }
46 error: lifetime parameter `'x` only used once
47 --> $DIR/one-use-in-fn-argument.rs:19:10
49 LL | fn right<'x, 'y>(foo: Double<'x, 'y>) -> &'y u32 { foo.f }
50 | ^^ this lifetime... -- ...is used only here
52 help: elide the single-use lifetime
54 LL - fn right<'x, 'y>(foo: Double<'x, 'y>) -> &'y u32 { foo.f }
55 LL + fn right<'y>(foo: Double<'_, 'y>) -> &'y u32 { foo.f }
58 error: aborting due to 4 previous errors