-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Labels
enhancementSomething new the playground could doSomething new the playground could dohelp wantedNot immediately going to be prioritized — ask for mentoring instructions!Not immediately going to be prioritized — ask for mentoring instructions!
Description
The following code snippets seem to cause the playground to interpret the file as a binary (including changing the "build" button to say "run"), but then rustc
can't find a crate-level main
function, and so fails compilation:
mod foo {
fn main() {}
}
fn foo() {
fn main() {}
}
IMO, only main
functions at the crate level should cause this behavior.
Metadata
Metadata
Assignees
Labels
enhancementSomething new the playground could doSomething new the playground could dohelp wantedNot immediately going to be prioritized — ask for mentoring instructions!Not immediately going to be prioritized — ask for mentoring instructions!