mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Remove unnecessary mut
.
The value is moved in pin!().
This commit is contained in:
parent
9d28fe3976
commit
95613e3dbc
@ -26,7 +26,7 @@ use std::async_iter::AsyncIterator;
|
||||
|
||||
#[test]
|
||||
fn general_coroutine() {
|
||||
let mut coro = #[coroutine] |x: i32| {
|
||||
let coro = #[coroutine] |x: i32| {
|
||||
yield x;
|
||||
"done"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user