]> git.proxmox.com Git - rustc.git/blob - src/test/ui/in-band-lifetimes/elided-lifetimes.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / in-band-lifetimes / elided-lifetimes.stderr
1 error: hidden lifetime parameters in types are deprecated
2 --> $DIR/elided-lifetimes.rs:13:12
3 |
4 LL | fn foo(x: &Foo) {
5 | ^^^- help: indicate the anonymous lifetime: `<'_>`
6 |
7 note: the lint level is defined here
8 --> $DIR/elided-lifetimes.rs:5:9
9 |
10 LL | #![deny(elided_lifetimes_in_paths)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: hidden lifetime parameters in types are deprecated
14 --> $DIR/elided-lifetimes.rs:32:29
15 |
16 LL | fn wrap_gift(gift: &str) -> Wrapped {
17 | ^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
18
19 error: hidden lifetime parameters in types are deprecated
20 --> $DIR/elided-lifetimes.rs:38:38
21 |
22 LL | fn wrap_gift_with_bow(gift: &str) -> WrappedWithBow {
23 | ^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
24
25 error: hidden lifetime parameters in types are deprecated
26 --> $DIR/elided-lifetimes.rs:44:29
27 |
28 LL | fn inspect_matched_set(set: MatchedSet) {
29 | ^^^^^^^^^^- help: indicate the anonymous lifetimes: `<'_, '_>`
30
31 error: hidden lifetime parameters in types are deprecated
32 --> $DIR/elided-lifetimes.rs:56:36
33 |
34 LL | fn $fn_name(gift: &str) -> $type_name {
35 | ^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
36 ...
37 LL | 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
42 error: hidden lifetime parameters in types are deprecated
43 --> $DIR/elided-lifetimes.rs:78:18
44 |
45 LL | let loyalty: Ref<(u32, char)> = honesty.borrow();
46 | ^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Ref<'_, (u32, char)>`
47
48 error: hidden lifetime parameters in types are deprecated
49 --> $DIR/elided-lifetimes.rs:70:9
50 |
51 LL | Ref<($($types),*)>
52 | ^^^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Ref<'_, ($($types),*)>`
53 ...
54 LL | 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
59 error: aborting due to 7 previous errors
60