diff options
| author | Chris Midgley <chris.midgley@dunecomputers.co.uk> | 2021-07-21 10:57:27 +0100 |
|---|---|---|
| committer | Chris Midgley <chris.midgley@dunecomputers.co.uk> | 2021-07-21 10:57:27 +0100 |
| commit | adc5de601f9e860f00638f078f3a4d4e6ae4c73d (patch) | |
| tree | 2726ec37fe2a16a37fda509a56b5b291ace28951 /compiler/rustc_error_codes/src | |
| parent | e09d78260908436e6bc1691f23cda2ee8382545a (diff) | |
| download | rust-adc5de601f9e860f00638f078f3a4d4e6ae4c73d.tar.gz rust-adc5de601f9e860f00638f078f3a4d4e6ae4c73d.zip | |
docs: remove spurious main functions
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0722.md | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0722.md b/compiler/rustc_error_codes/src/error_codes/E0722.md index 1513c4ce059..fe2b6d27457 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0722.md +++ b/compiler/rustc_error_codes/src/error_codes/E0722.md @@ -7,8 +7,6 @@ Erroneous code example: #[optimize(something)] // error: invalid argument pub fn something() {} - -fn main() {} ``` The `#[optimize]` attribute should be used as follows: @@ -25,8 +23,6 @@ For example: #[optimize(size)] pub fn something() {} - -fn main() {} ``` See [RFC 2412] for more details. |
