Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81cd596
commit dce20bf
Showing
20 changed files
with
221 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
error[E0623]: lifetime mismatch | ||
--> $DIR/issue-63388-1.rs:12:10 | ||
--> $DIR/issue-63388-1.rs:14:9 | ||
| | ||
LL | &'a self, foo: &dyn Foo | ||
| -------- this parameter and the return type are declared with different lifetimes... | ||
LL | ) -> &dyn Foo | ||
| ^^^^^^^^ | ||
| | | ||
| ...but data from `foo` is returned here | ||
| -------- | ||
LL | { | ||
LL | foo | ||
| ^^^ ...but data from `foo` is returned here | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 9 additions & 12 deletions
21
src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,62 @@ | ||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:13:42 | ||
--> $DIR/lt-ref-self-async.rs:14:9 | ||
| | ||
LL | async fn ref_self(&self, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:19:48 | ||
--> $DIR/lt-ref-self-async.rs:20:9 | ||
| | ||
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:23:57 | ||
--> $DIR/lt-ref-self-async.rs:24:9 | ||
| | ||
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:27:57 | ||
--> $DIR/lt-ref-self-async.rs:28:9 | ||
| | ||
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:31:66 | ||
--> $DIR/lt-ref-self-async.rs:32:9 | ||
| | ||
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error[E0623]: lifetime mismatch | ||
--> $DIR/lt-ref-self-async.rs:35:62 | ||
--> $DIR/lt-ref-self-async.rs:36:9 | ||
| | ||
LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 { | ||
| ----- ^^^^ | ||
| | | | ||
| | ...but data from `f` is returned here | ||
| ----- ---- | ||
| | | ||
| this parameter and the return type are declared with different lifetimes... | ||
LL | f | ||
| ^ ...but data from `f` is returned here | ||
|
||
error: aborting due to 6 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.