diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-13 20:09:05 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-13 21:01:36 +0000 |
| commit | ef04c9795b457c35ec9fd2d11d8259cade60caba (patch) | |
| tree | 71d02dda1a286f749c5780ae84b3de18cc47217e /compiler/rustc_error_codes/src | |
| parent | 59315b8a6346b9e2ed5a77eff2d8276101daa25b (diff) | |
| download | rust-ef04c9795b457c35ec9fd2d11d8259cade60caba.tar.gz rust-ef04c9795b457c35ec9fd2d11d8259cade60caba.zip | |
Deprecate E0706
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0706.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0706.md b/compiler/rustc_error_codes/src/error_codes/E0706.md index fabd855a222..a09abb59ba8 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0706.md +++ b/compiler/rustc_error_codes/src/error_codes/E0706.md @@ -1,8 +1,10 @@ +#### Note: this error code is no longer emitted by the compiler. + `async fn`s are not yet supported in traits in Rust. Erroneous code example: -```compile_fail,edition2018 +```ignore,edition2018 trait T { // Neither case is currently supported. async fn foo() {} @@ -13,7 +15,7 @@ trait T { `async fn`s return an `impl Future`, making the following two examples equivalent: -```edition2018,ignore (example-of-desugaring-equivalence) +```ignore,edition2018 (example-of-desugaring-equivalence) async fn foo() -> User { unimplemented!() } |
