gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

pub(crate) not supported and gives error without source location

Open bjorn3 opened this issue 2 years ago • 0 comments

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)

bjorn3 avatar Aug 08 '22 11:08 bjorn3