Skip to content

Commit c19e8c3

Browse files
committed
bless
1 parent 4334a72 commit c19e8c3

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

tests/ui/mismatched_types/issue-75361-mismatched-impl.stderr

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ LL | fn adjacent_edges(&self) -> Box<dyn MyTrait<Item = &Self::EdgeType> + '_>
1010
= note: expected signature `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + 'static)>`
1111
found signature `fn(&'1 T) -> Box<(dyn MyTrait<Item = &'1 T> + '1)>`
1212
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13-
--> $DIR/issue-75361-mismatched-impl.rs:12:22
13+
--> $DIR/issue-75361-mismatched-impl.rs:12:55
1414
|
1515
LL | fn adjacent_edges(&self) -> Box<dyn MyTrait<Item = &Self::EdgeType>>;
16-
| ^^^^ ^^^^ consider borrowing this type parameter in the trait
17-
| |
18-
| consider borrowing this type parameter in the trait
16+
| ^^^^ consider borrowing this type parameter in the trait
1917

2018
error: aborting due to 1 previous error
2119

tests/ui/self/elision/no-shadow-pin-self.stderr

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ LL | fn method(self: Pin<&Self>, f: &u32) -> &u32 {
99
|
1010
= note: expected signature `fn(Pin<&'1 Pin<P>>, &'a u32) -> &'a u32`
1111
found signature `fn(Pin<&'1 Pin<P>>, &'2 u32) -> &'1 u32`
12-
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13-
--> $DIR/no-shadow-pin-self.rs:3:30
14-
|
15-
LL | fn method<'a>(self: Pin<&Self>, f: &'a u32) -> &'a u32 {
16-
| ^^^^ consider borrowing this type parameter in the trait
12+
= help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13+
= help: verify the lifetime relationships in the `trait` and `impl` between the `self` argument, the other inputs and its output
1714

1815
error: lifetime may not live long enough
1916
--> $DIR/no-shadow-pin-self.rs:12:9

tests/ui/traits/param-without-lifetime-constraint.stderr

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ LL | fn get_relation(&self) -> &ProofReader {
1010
= note: expected signature `fn(&'1 Article) -> &'2 ProofReader`
1111
found signature `fn(&'1 Article) -> &'1 ProofReader`
1212
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13-
--> $DIR/param-without-lifetime-constraint.rs:10:22
13+
--> $DIR/param-without-lifetime-constraint.rs:10:31
1414
|
1515
LL | fn get_relation(&self) -> To;
16-
| ^^^^ ^^ consider borrowing this type parameter in the trait
17-
| |
18-
| consider borrowing this type parameter in the trait
16+
| ^^ consider borrowing this type parameter in the trait
1917

2018
error: aborting due to 1 previous error
2119

tests/ui/traits/self-without-lifetime-constraint.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ help: the lifetime requirements from the `impl` do not correspond to the require
1313
--> $DIR/self-without-lifetime-constraint.rs:42:60
1414
|
1515
LL | fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
16-
| ^^^^ ^^^^ consider borrowing this type parameter in the trait
17-
| |
18-
| consider borrowing this type parameter in the trait
16+
| ^^^^ consider borrowing this type parameter in the trait
1917

2018
error[E0515]: cannot return value referencing function parameter `x`
2119
--> $DIR/self-without-lifetime-constraint.rs:17:87

0 commit comments

Comments
 (0)