gccrs
gccrs copied to clipboard
pub(crate) not supported and gives error without source location
I tried this code:
pub(crate) struct Foo;
I expected to see this happen: Compiles
Instead, this happened:
rust1: error: cannot use non-module path as privacy restrictor
Compiler returned: 1
Meta
- What version of Rust GCC were you using, git sha if possible.
gccrs (Compiler-Explorer-Build-gcc-8809ee8c6a5621e830f3cfe66c381f986e63c7f2-binutils-2.38) 12.0.1 20220118 (experimental)