diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-14 23:12:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-01-16 17:12:10 +0000 |
| commit | f1ee076f8188c02a2f4d06fc2fde2f58bdb3d6f4 (patch) | |
| tree | 8fa3b40dfa5a48c8de775ec3e049c347e70f0281 /compiler/rustc_error_codes/src | |
| parent | 8bb1eaee64e170153d21e64cdb437f3d36acd194 (diff) | |
| download | rust-f1ee076f8188c02a2f4d06fc2fde2f58bdb3d6f4.tar.gz rust-f1ee076f8188c02a2f4d06fc2fde2f58bdb3d6f4.zip | |
Async closures will move params into the future always
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0708.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0708.md b/compiler/rustc_error_codes/src/error_codes/E0708.md index 9287fc803d1..61a853ac446 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0708.md +++ b/compiler/rustc_error_codes/src/error_codes/E0708.md @@ -1,12 +1,14 @@ +#### Note: this error code is no longer emitted by the compiler. + `async` non-`move` closures with parameters are currently not supported. Erroneous code example: -```compile_fail,edition2018,E0708 +```edition2018 #![feature(async_closure)] fn main() { - let add_one = async |num: u8| { // error! + let add_one = async |num: u8| { num + 1 }; } |
