Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
10f12fe3e73f3b6f7e6d6f8bbd87b1a8b4e74a07
rust/src/test/ui/async-await/issues/issue-51719.stderr

11 lines
332 B
Plaintext
Raw Normal View History

Implement built-in await syntax Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature.
2019-04-18 12:55:23 -07:00
error[E0728]: `await` is only allowed inside `async` functions and blocks
--bless post no async_await gates in tests.
2019-08-02 03:48:43 +02:00
--> $DIR/issue-51719.rs:8:19
Implement built-in await syntax Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature.
2019-04-18 12:55:23 -07:00
|
Don't ICE on item in `.await` expression
2019-06-26 13:48:41 +01:00
LL | let _gen = || foo().await;
| -- ^^^^^^^^^^^ only allowed inside `async` functions and blocks
Point at enclosing fn/closure when it's not async
2019-05-16 13:17:40 -07:00
| |
| this is not `async`
Implement built-in await syntax Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature.
2019-04-18 12:55:23 -07:00
error: aborting due to previous error
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 215ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API