Skip to content

Commit adc5de6

Browse files
committed
docs: remove spurious main functions
1 parent e09d782 commit adc5de6

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+0
-4
lines changed

compiler/rustc_error_codes/src/error_codes/E0722.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Erroneous code example:
77
88
#[optimize(something)] // error: invalid argument
99
pub fn something() {}
10-
11-
fn main() {}
1210
```
1311

1412
The `#[optimize]` attribute should be used as follows:
@@ -25,8 +23,6 @@ For example:
2523
2624
#[optimize(size)]
2725
pub fn something() {}
28-
29-
fn main() {}
3026
```
3127

3228
See [RFC 2412] for more details.

0 commit comments

Comments
 (0)