@@ -33,11 +33,11 @@ LL | fn dummy2(self: &Bar<T>) {}
33
33
|
34
34
= note: expected reference `&'a Bar<T>`
35
35
found reference `&Bar<T>`
36
- note: the anonymous lifetime #1 defined on the method body at 37:5 ...
37
- --> $DIR/ufcs-explicit-self-bad.rs:37:5
36
+ note: the anonymous lifetime defined on the method body at 37:21 ...
37
+ --> $DIR/ufcs-explicit-self-bad.rs:37:21
38
38
|
39
39
LL | fn dummy2(self: &Bar<T>) {}
40
- | ^^^^^^^^^^^^^^^^^ ^^^^^^^
40
+ | ^^^^^^^
41
41
note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 35:6
42
42
--> $DIR/ufcs-explicit-self-bad.rs:35:6
43
43
|
@@ -57,11 +57,11 @@ note: the lifetime `'a` as defined on the impl at 35:6...
57
57
|
58
58
LL | impl<'a, T> SomeTrait for &'a Bar<T> {
59
59
| ^^
60
- note: ...does not necessarily outlive the anonymous lifetime #1 defined on the method body at 37:5
61
- --> $DIR/ufcs-explicit-self-bad.rs:37:5
60
+ note: ...does not necessarily outlive the anonymous lifetime defined on the method body at 37:21
61
+ --> $DIR/ufcs-explicit-self-bad.rs:37:21
62
62
|
63
63
LL | fn dummy2(self: &Bar<T>) {}
64
- | ^^^^^^^^^^^^^^^^^ ^^^^^^^
64
+ | ^^^^^^^
65
65
66
66
error[E0308]: mismatched `self` parameter type
67
67
--> $DIR/ufcs-explicit-self-bad.rs:39:21
@@ -71,11 +71,11 @@ LL | fn dummy3(self: &&Bar<T>) {}
71
71
|
72
72
= note: expected reference `&'a Bar<T>`
73
73
found reference `&Bar<T>`
74
- note: the anonymous lifetime #2 defined on the method body at 39:5 ...
75
- --> $DIR/ufcs-explicit-self-bad.rs:39:5
74
+ note: the anonymous lifetime defined on the method body at 39:22 ...
75
+ --> $DIR/ufcs-explicit-self-bad.rs:39:22
76
76
|
77
77
LL | fn dummy3(self: &&Bar<T>) {}
78
- | ^^^^^^^^^^^^^^^^^^ ^^^^^^^
78
+ | ^^^^^^^
79
79
note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 35:6
80
80
--> $DIR/ufcs-explicit-self-bad.rs:35:6
81
81
|
@@ -95,11 +95,11 @@ note: the lifetime `'a` as defined on the impl at 35:6...
95
95
|
96
96
LL | impl<'a, T> SomeTrait for &'a Bar<T> {
97
97
| ^^
98
- note: ...does not necessarily outlive the anonymous lifetime #2 defined on the method body at 39:5
99
- --> $DIR/ufcs-explicit-self-bad.rs:39:5
98
+ note: ...does not necessarily outlive the anonymous lifetime defined on the method body at 39:22
99
+ --> $DIR/ufcs-explicit-self-bad.rs:39:22
100
100
|
101
101
LL | fn dummy3(self: &&Bar<T>) {}
102
- | ^^^^^^^^^^^^^^^^^^ ^^^^^^^
102
+ | ^^^^^^^
103
103
104
104
error: aborting due to 7 previous errors
105
105
0 commit comments