blob: 9a8ef3b840dffc12aac7afd7cc994a9c1e662bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
An unsupported expression was used inside a const context.
Erroneous code example:
```compile_fail,edition2018,E0744
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
|