@@ -47,8 +47,20 @@ help: consider using the `'_` lifetime
47
47
LL | fn inspect_matched_set(set: MatchedSet<'_, '_>) {
48
48
| ~~~~~~~~~~~~~~~~~~
49
49
50
+ error[E0106]: missing lifetime specifiers
51
+ --> $DIR/elided-lifetimes.rs:55:20
52
+ |
53
+ LL | fn match_sets() -> MatchedSet {
54
+ | ^^^^^^^^^^ expected 2 lifetime parameters
55
+ |
56
+ = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
57
+ help: consider using the `'static` lifetime
58
+ |
59
+ LL | fn match_sets() -> MatchedSet<'static, 'static> {
60
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
+
50
62
error: hidden lifetime parameters in types are deprecated
51
- --> $DIR/elided-lifetimes.rs:60 :36
63
+ --> $DIR/elided-lifetimes.rs:69 :36
52
64
|
53
65
LL | fn $fn_name(gift: &str) -> $type_name {
54
66
| ^^^^^^^^^^ expected named lifetime parameter
@@ -63,7 +75,22 @@ LL | fn $fn_name(gift: &str) -> $type_name<'_> {
63
75
| ~~~~~~~~~~~~~~
64
76
65
77
error: hidden lifetime parameters in types are deprecated
66
- --> $DIR/elided-lifetimes.rs:84:22
78
+ --> $DIR/elided-lifetimes.rs:69:36
79
+ |
80
+ LL | fn $fn_name(gift: &str) -> $type_name {
81
+ | ^^^^^^^^^^ expected named lifetime parameter
82
+ ...
83
+ LL | autowrapper!(AutowrappedAgain, autowrap_gift_again, 'a);
84
+ | ------------------------------------------------------- in this macro invocation
85
+ |
86
+ = note: this error originates in the macro `autowrapper` (in Nightly builds, run with -Z macro-backtrace for more info)
87
+ help: consider using the `'_` lifetime
88
+ |
89
+ LL | fn $fn_name(gift: &str) -> $type_name<'_> {
90
+ | ~~~~~~~~~~~~~~
91
+
92
+ error: hidden lifetime parameters in types are deprecated
93
+ --> $DIR/elided-lifetimes.rs:101:22
67
94
|
68
95
LL | let loyalty: Ref<(u32, char)> = honesty.borrow();
69
96
| ^ expected named lifetime parameter
@@ -74,7 +101,7 @@ LL | let loyalty: Ref<'_, (u32, char)> = honesty.borrow();
74
101
| +++
75
102
76
103
error: hidden lifetime parameters in types are deprecated
77
- --> $DIR/elided-lifetimes.rs:75 :13
104
+ --> $DIR/elided-lifetimes.rs:92 :13
78
105
|
79
106
LL | Ref<($($types),*)>
80
107
| ^ expected named lifetime parameter
@@ -88,5 +115,6 @@ help: consider using the `'_` lifetime
88
115
LL | Ref<'_, ($($types),*)>
89
116
| +++
90
117
91
- error: aborting due to 7 previous errors
118
+ error: aborting due to 9 previous errors
92
119
120
+ For more information about this error, try `rustc --explain E0106`.
0 commit comments