-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually use the inferred ClosureKind from signature inference in cor…
…outine-closures
- Loading branch information
1 parent
385fa9d
commit 3d9d5d7
Showing
9 changed files
with
203 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
error[E0597]: `x` does not live long enough | ||
--> $DIR/async-closure-captures.rs:LL:CC | ||
| | ||
LL | let c = force_fnonce(async move || { | ||
| ____________________________________________- | ||
LL | | println!("{x:?}"); | ||
| | ^ borrowed value does not live long enough | ||
LL | | }); | ||
| | -- | ||
| | || | ||
| | |`x` dropped here while still borrowed | ||
| |_________|borrow later used here | ||
| value captured here by coroutine | ||
|
||
error[E0597]: `x` does not live long enough | ||
--> $DIR/async-closure-captures.rs:LL:CC | ||
| | ||
LL | let c = force_fnonce(async move || { | ||
| ____________________________________________- | ||
LL | | println!("{x:?}"); | ||
| | ^ borrowed value does not live long enough | ||
LL | | }); | ||
| | -- | ||
| | || | ||
| | |`x` dropped here while still borrowed | ||
| |_________|borrow later used here | ||
| value captured here by coroutine | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0597`. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
error[E0597]: `x` does not live long enough | ||
--> $DIR/captures.rs:89:24 | ||
| | ||
LL | let c = force_fnonce(async move || { | ||
| ____________________________________________- | ||
LL | | println!("{x:?}"); | ||
| | ^ borrowed value does not live long enough | ||
LL | | }); | ||
| | -- | ||
| | || | ||
| | |`x` dropped here while still borrowed | ||
| |_________|borrow later used here | ||
| value captured here by coroutine | ||
|
||
error[E0597]: `x` does not live long enough | ||
--> $DIR/captures.rs:95:24 | ||
| | ||
LL | let c = force_fnonce(async move || { | ||
| ____________________________________________- | ||
LL | | println!("{x:?}"); | ||
| | ^ borrowed value does not live long enough | ||
LL | | }); | ||
| | -- | ||
| | || | ||
| | |`x` dropped here while still borrowed | ||
| |_________|borrow later used here | ||
| value captured here by coroutine | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0597`. |
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