Change start
to #[start]
in some diagnosis
They refer to a function with the `start` attribute, but not necessarily named `start`.
This commit is contained in:
parent
03c199af8e
commit
17dfabff9c
11 changed files with 26 additions and 26 deletions
|
@ -7,7 +7,7 @@ Erroneous code example:
|
|||
|
||||
#[start]
|
||||
fn start(_: isize, _: *const *const u8) -> isize where (): Copy {
|
||||
//^ error: start function is not allowed to have a where clause
|
||||
//^ error: `#[start]` function is not allowed to have a where clause
|
||||
0
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue