diff options
| author | Charles Lew <crlf0710@gmail.com> | 2021-04-08 21:37:38 +0800 |
|---|---|---|
| committer | Charles Lew <crlf0710@gmail.com> | 2021-04-16 13:04:02 +0800 |
| commit | fc357039f9065d4a707cbdd1ce6f30afaf7e3f26 (patch) | |
| tree | 9bb565f3f1911a7d4ad48a43f1a178fa2b5353a2 /compiler/rustc_error_codes | |
| parent | 9c3b66cff74f3a21dc735294f3df319a38bc2114 (diff) | |
| download | rust-fc357039f9065d4a707cbdd1ce6f30afaf7e3f26.tar.gz rust-fc357039f9065d4a707cbdd1ce6f30afaf7e3f26.zip | |
Remove #[main] attribute.
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0137.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0137.md b/compiler/rustc_error_codes/src/error_codes/E0137.md index 0a02913d236..d4e19170f3f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0137.md +++ b/compiler/rustc_error_codes/src/error_codes/E0137.md @@ -1,8 +1,10 @@ +#### Note: this error code is no longer emitted by the compiler. + More than one function was declared with the `#[main]` attribute. Erroneous code example: -```compile_fail,E0137 +```compile_fail #![feature(main)] #[main] @@ -16,7 +18,7 @@ This error indicates that the compiler found multiple functions with the `#[main]` attribute. This is an error because there must be a unique entry point into a Rust program. Example: -``` +```compile_fail #![feature(main)] #[main] |
