Deprecate E0706
This commit is contained in:
parent
59315b8a63
commit
ef04c9795b
4 changed files with 6 additions and 32 deletions
|
@ -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!()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue