blob: e56c45db1766eb5343ca677cfd9148609fc6c602 [file] [log] [blame] [view]
#### Note: this error code is no longer emitted by the compiler.
An unsupported expression was used inside a const context.
Erroneous code example:
```ignore (removed error code)
const _: i32 = {
async { 0 }.await
};
```
At the moment, `.await` is forbidden inside a `const`, `static`, or `const fn`.
This may be allowed at some point in the future, but the implementation is not
yet complete. See the tracking issue for [`async`] in `const fn`.
[`async`]: https://github.com/rust-lang/rust/issues/69431