You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #[start] takes precedence over #[main], #[main] is ignored. This may lead to surprising result.
For example, if #[start] exists, rustc --test produces executable which just runs start function rather than test runner.
It would be good if rustc emits warning if there are too many start-related attributes.
The text was updated successfully, but these errors were encountered:
Since
#[start]
takes precedence over#[main]
,#[main]
is ignored. This may lead to surprising result.For example, if
#[start]
exists,rustc --test
produces executable which just runs start function rather than test runner.It would be good if rustc emits warning if there are too many start-related attributes.
The text was updated successfully, but these errors were encountered: