2017-02-07 14:05:30 -06:00
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:7:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
7 | fn distinct_lifetimes<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: u8) { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D needless-lifetimes` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:9:1
|
2017-05-11 06:41:35 -05:00
|
|
|
|
|
|
|
|
9 | fn distinct_and_static<'a, 'b>(_x: &'a u8, _y: &'b u8, _z: &'static u8) { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:17:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
17 | fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 { x }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:29:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
29 | fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> { Ok(x) }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:32:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
32 | fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> where T: Copy { Ok(x) }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:38:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
38 | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) { }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:52:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
52 | / fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I>
|
|
|
|
53 | | where for<'x> F: Fn(Lt<'x, I>) -> Lt<'x, I>
|
|
|
|
54 | | { unreachable!() }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |__________________^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:61:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
61 | fn self_and_out<'s>(&'s self) -> &'s u8 { &self.x }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:65:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
65 | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) { }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:81:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
81 | fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { unimplemented!() }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:101:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
101 | fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str { unimplemented!() }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:105:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
105 | fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { unimplemented!() }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:116:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
116 | fn named_input_elided_output<'a>(_arg: &'a str) -> &str { unimplemented!() }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: explicit lifetimes given in parameter types where they could be elided
|
2017-05-17 10:51:35 -05:00
|
|
|
--> lifetimes.rs:120:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 06:41:35 -05:00
|
|
|
120 | fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { unimplemented!() }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-07-02 23:37:30 -05:00
|
|
|
error: aborting due to 14 previous errors
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|