Nested main
causes build error
#511
Labels
enhancement
Something new the playground could do
help wanted
Not immediately going to be prioritized — ask for mentoring instructions!
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-levelmain
function, and so fails compilation:IMO, only
main
functions at the crate level should cause this behavior.The text was updated successfully, but these errors were encountered: