@@ -47,8 +47,20 @@ help: consider using the `'_` lifetime
4747LL | fn inspect_matched_set(set: MatchedSet<'_, '_>) {
4848 | ~~~~~~~~~~~~~~~~~~
4949
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+
5062error: hidden lifetime parameters in types are deprecated
51- --> $DIR/elided-lifetimes.rs:60 :36
63+ --> $DIR/elided-lifetimes.rs:69 :36
5264 |
5365LL | fn $fn_name(gift: &str) -> $type_name {
5466 | ^^^^^^^^^^ expected named lifetime parameter
@@ -63,7 +75,22 @@ LL | fn $fn_name(gift: &str) -> $type_name<'_> {
6375 | ~~~~~~~~~~~~~~
6476
6577error: 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
6794 |
6895LL | let loyalty: Ref<(u32, char)> = honesty.borrow();
6996 | ^ expected named lifetime parameter
@@ -74,7 +101,7 @@ LL | let loyalty: Ref<'_, (u32, char)> = honesty.borrow();
74101 | +++
75102
76103error: hidden lifetime parameters in types are deprecated
77- --> $DIR/elided-lifetimes.rs:75 :13
104+ --> $DIR/elided-lifetimes.rs:92 :13
78105 |
79106LL | Ref<($($types),*)>
80107 | ^ expected named lifetime parameter
@@ -88,5 +115,6 @@ help: consider using the `'_` lifetime
88115LL | Ref<'_, ($($types),*)>
89116 | +++
90117
91- error: aborting due to 7 previous errors
118+ error: aborting due to 9 previous errors
92119
120+ For more information about this error, try `rustc --explain E0106`.
0 commit comments