@@ -45,45 +45,45 @@ error: explicit lifetimes given in parameter types where they could be elided
45
45
| |__________________^
46
46
47
47
error: explicit lifetimes given in parameter types where they could be elided
48
- --> $DIR/lifetimes.rs:65 :5
48
+ --> $DIR/lifetimes.rs:77 :5
49
49
|
50
- 65 | fn self_and_out<'s>(&'s self) -> &'s u8 { &self.x }
50
+ 77 | fn self_and_out<'s>(&'s self) -> &'s u8 { &self.x }
51
51
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52
52
53
53
error: explicit lifetimes given in parameter types where they could be elided
54
- --> $DIR/lifetimes.rs:69 :5
54
+ --> $DIR/lifetimes.rs:81 :5
55
55
|
56
- 69 | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) { }
56
+ 81 | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) { }
57
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
58
59
59
error: explicit lifetimes given in parameter types where they could be elided
60
- --> $DIR/lifetimes.rs:85 :1
60
+ --> $DIR/lifetimes.rs:97 :1
61
61
|
62
- 85 | fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { unimplemented!() }
62
+ 97 | fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str { unimplemented!() }
63
63
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
64
65
65
error: explicit lifetimes given in parameter types where they could be elided
66
- --> $DIR/lifetimes.rs:105 :1
66
+ --> $DIR/lifetimes.rs:117 :1
67
67
|
68
- 105 | fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str { unimplemented!() }
68
+ 117 | fn trait_obj_elided2<'a>(_arg: &'a Drop) -> &'a str { unimplemented!() }
69
69
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
70
71
71
error: explicit lifetimes given in parameter types where they could be elided
72
- --> $DIR/lifetimes.rs:109 :1
72
+ --> $DIR/lifetimes.rs:121 :1
73
73
|
74
- 109 | fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { unimplemented!() }
74
+ 121 | fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str { unimplemented!() }
75
75
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76
76
77
77
error: explicit lifetimes given in parameter types where they could be elided
78
- --> $DIR/lifetimes.rs:120 :1
78
+ --> $DIR/lifetimes.rs:132 :1
79
79
|
80
- 120 | fn named_input_elided_output<'a>(_arg: &'a str) -> &str { unimplemented!() }
80
+ 132 | fn named_input_elided_output<'a>(_arg: &'a str) -> &str { unimplemented!() }
81
81
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
82
83
83
error: explicit lifetimes given in parameter types where they could be elided
84
- --> $DIR/lifetimes.rs:124 :1
84
+ --> $DIR/lifetimes.rs:136 :1
85
85
|
86
- 124 | fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { unimplemented!() }
86
+ 136 | fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) { unimplemented!() }
87
87
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88
88
89
89
error: aborting due to 14 previous errors
0 commit comments