1error: hidden lifetime parameters in types are deprecated
2  --> $DIR/elided-lifetimes.rs:13:12
3   |
4LL | fn foo(x: &Foo) {
5   |            ^^^- help: indicate the anonymous lifetime: `<'_>`
6   |
7note: the lint level is defined here
8  --> $DIR/elided-lifetimes.rs:5:9
9   |
10LL | #![deny(elided_lifetimes_in_paths)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: hidden lifetime parameters in types are deprecated
14  --> $DIR/elided-lifetimes.rs:32:29
15   |
16LL | fn wrap_gift(gift: &str) -> Wrapped {
17   |                             ^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
18
19error: hidden lifetime parameters in types are deprecated
20  --> $DIR/elided-lifetimes.rs:38:38
21   |
22LL | fn wrap_gift_with_bow(gift: &str) -> WrappedWithBow {
23   |                                      ^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
24
25error: hidden lifetime parameters in types are deprecated
26  --> $DIR/elided-lifetimes.rs:44:29
27   |
28LL | fn inspect_matched_set(set: MatchedSet) {
29   |                             ^^^^^^^^^^- help: indicate the anonymous lifetimes: `<'_, '_>`
30
31error: hidden lifetime parameters in types are deprecated
32  --> $DIR/elided-lifetimes.rs:56:36
33   |
34LL |         fn $fn_name(gift: &str) -> $type_name {
35   |                                    ^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
36...
37LL | autowrapper!(Autowrapped, autowrap_gift, 'a);
38   | -------------------------------------------- in this macro invocation
39   |
40   = note: this error originates in the macro `autowrapper` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42error: hidden lifetime parameters in types are deprecated
43  --> $DIR/elided-lifetimes.rs:78:18
44   |
45LL |     let loyalty: Ref<(u32, char)> = honesty.borrow();
46   |                  ^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Ref<'_, (u32, char)>`
47
48error: hidden lifetime parameters in types are deprecated
49  --> $DIR/elided-lifetimes.rs:70:9
50   |
51LL |         Ref<($($types),*)>
52   |         ^^^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Ref<'_, ($($types),*)>`
53...
54LL |     let yellow: anytuple_ref_ty!(bool, &str) = laughter.borrow();
55   |                 ---------------------------- in this macro invocation
56   |
57   = note: this error originates in the macro `anytuple_ref_ty` (in Nightly builds, run with -Z macro-backtrace for more info)
58
59error: aborting due to 7 previous errors
60
61