Remove #[main] attribute.
This commit is contained in:
parent
9c3b66cff7
commit
fc357039f9
29 changed files with 59 additions and 214 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue