extern crate in local scope #42776
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
This code
compiled without any errors or warnings, but it's not possible to use any libc's items inside main. Should compiler warn about wrong place for
extern crate
? Or this is legal to useextern crate
in local scope?The text was updated successfully, but these errors were encountered: