Closed
Description
Pre-1.42, applying an attribute procedural macro to a module was disallowed with the following message:
error[E0658]: custom attributes cannot be applied to modules
...
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
As an example, see this build using rust 1.34 that exhibits this.
From rust 1.42 and onward this error does not occur, however, this is not detailed in the release notes.