1 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2 --> $DIR/lifetimes.rs:4:1
4 LL | fn distinct_lifetimes<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: u8) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
9 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
10 --> $DIR/lifetimes.rs:6:1
12 LL | fn distinct_and_static<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: &'static u8) {}
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
16 --> $DIR/lifetimes.rs:16:1
18 LL | / fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 {
23 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
24 --> $DIR/lifetimes.rs:45:1
26 LL | / fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> {
31 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
32 --> $DIR/lifetimes.rs:50:1
34 LL | / fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()>
42 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
43 --> $DIR/lifetimes.rs:62:1
45 LL | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) {}
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
49 --> $DIR/lifetimes.rs:86:1
51 LL | / fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I>
53 LL | | for<'x> F: Fn(Lt<'x, I>) -> Lt<'x, I>,
59 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
60 --> $DIR/lifetimes.rs:120:5
62 LL | / fn self_and_out<'s>(&'s self) -> &'s u8 {
67 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
68 --> $DIR/lifetimes.rs:129:5
70 LL | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) {}
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
74 --> $DIR/lifetimes.rs:148:1
76 LL | / fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str {
77 LL | | unimplemented!()
81 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
82 --> $DIR/lifetimes.rs:178:1
84 LL | / fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str {
85 LL | | unimplemented!()
89 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
90 --> $DIR/lifetimes.rs:184:1
92 LL | / fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str {
93 LL | | unimplemented!()
97 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
98 --> $DIR/lifetimes.rs:203:1
100 LL | / fn named_input_elided_output<'a>(_arg: &'a str) -> &str {
101 LL | | unimplemented!()
105 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
106 --> $DIR/lifetimes.rs:211:1
108 LL | / fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) {
109 LL | | unimplemented!()
113 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
114 --> $DIR/lifetimes.rs:247:1
116 LL | / fn out_return_type_lts<'a>(e: &'a str) -> Cow<'a> {
117 LL | | unimplemented!()
121 error: aborting due to 15 previous errors