The following code compiles without errors:
#[path = "foo.rs"]
mod sub {}
The following code also compiles without errors, when the code is put into a submodule file:
In both cases, the attribute seems to do nothing. They probably shouldn't compile.
cc @JonathanBrouwer @jdonszelmann
Meta
rustc version 1.96.0
The following code compiles without errors:
The following code also compiles without errors, when the code is put into a submodule file:
#![path = "foo.rs"]In both cases, the attribute seems to do nothing. They probably shouldn't compile.
cc @JonathanBrouwer @jdonszelmann
Meta
rustc version 1.96.0