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
228015acd29ceaaed815a0430da462648e44ea42
rust/src/test/ui/async-await/issues/issue-51751.stderr

12 lines
359 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
--> $DIR/issue-51751.rs:11:20
|
Point at enclosing fn/closure when it's not async
2019-05-16 13:17:40 -07:00
LL | fn main() {
| ---- this is not `async`
LL | let result = inc(10000);
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
LL | let finished = result.await;
Parse alternative incorrect uses of await and recover
2019-05-15 19:47:18 -07:00
| ^^^^^^^^^^^^ only allowed inside `async` functions and blocks
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: 226ms Template: 2ms
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