mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-07 18:58:51 +00:00
Merge from rustc
This commit is contained in:
commit
df8fd75402
1 changed files with 3 additions and 3 deletions
|
@ -3869,7 +3869,7 @@ use std::ops::{Coroutine, CoroutineState};
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut coroutine = || {
|
let mut coroutine = #[coroutine] || {
|
||||||
yield 1;
|
yield 1;
|
||||||
return "foo"
|
return "foo"
|
||||||
};
|
};
|
||||||
|
@ -3901,7 +3901,7 @@ use std::ops::Coroutine;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut coroutine = || {
|
let mut coroutine = #[coroutine] || {
|
||||||
println!("2");
|
println!("2");
|
||||||
yield;
|
yield;
|
||||||
println!("4");
|
println!("4");
|
||||||
|
@ -4007,7 +4007,7 @@ use std::pin::Pin;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let ret = "foo";
|
let ret = "foo";
|
||||||
let mut coroutine = move || {
|
let mut coroutine = #[coroutine] move || {
|
||||||
yield 1;
|
yield 1;
|
||||||
return ret
|
return ret
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue