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:
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user