diff options
| author | bors <bors@rust-lang.org> | 2020-04-21 01:26:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-21 01:26:56 +0000 |
| commit | 073744f554cf170942aa43893f292199ad44e3d4 (patch) | |
| tree | 7460d5414cb1ed93377e6effe1f8d724c8c4d7dd /src/librustc_error_codes/error_codes | |
| parent | 20fc02f836f3035b86b56a7cedb97c5cd4ed9612 (diff) | |
| parent | 9a0e7029062fb74a71a200b1f7ce0c212c9ea3a6 (diff) | |
| download | rust-073744f554cf170942aa43893f292199ad44e3d4.tar.gz rust-073744f554cf170942aa43893f292199ad44e3d4.zip | |
Auto merge of #71367 - Dylan-DPC:rollup-ysj4olr, r=Dylan-DPC
Rollup of 4 pull requests Successful merges: - #69362 (Stabilize most common subset of alloc_layout_extras) - #71174 (Check that main/start is not async) - #71285 (MIR: use HirId instead of NodeId to avoid cycles while inlining) - #71346 (Do not build tools if user do not want them) Failed merges: r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0752.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0752.md b/src/librustc_error_codes/error_codes/E0752.md new file mode 100644 index 00000000000..86945f83b55 --- /dev/null +++ b/src/librustc_error_codes/error_codes/E0752.md @@ -0,0 +1,11 @@ +`fn main()` or the specified start function is not allowed to be +async. You might be seeing this error because your async runtime +library is not set up correctly. + +Erroneous code example: + +```compile_fail,E0752 +async fn main() -> Result<i32, ()> { + Ok(1) +} +``` |
