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:
Eduardo Sánchez Muñoz 2023-09-22 15:58:43 +02:00
parent 03c199af8e
commit 17dfabff9c
11 changed files with 26 additions and 26 deletions

View file

@ -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
}
```