We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46f5aa9 commit 299a0d5Copy full SHA for 299a0d5
src/libstd/keyword_docs.rs
@@ -895,6 +895,15 @@ mod mod_keyword {}
895
/// // x is no longer available
896
/// ```
897
///
898
+/// `move` is also valid before an async block.
899
+///
900
+/// ```rust
901
+/// let capture = "hello";
902
+/// let block = async move {
903
+/// println!("rust says {} from async block", capture);
904
+/// };
905
+/// ```
906
907
/// For more information on the `move` keyword, see the [closure]'s section
908
/// of the Rust book or the [threads] section
909
0 commit comments