File: incorrect_visibility_restriction.stderr

package info (click to toggle)
rust-lazy-static 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
error[E0704]: incorrect visibility restriction
 --> tests/compile_fail/incorrect_visibility_restriction.rs:5:9
  |
5 |     pub(nonsense) static ref WRONG: () = ();
  |         ^^^^^^^^ help: make this visible only to module `nonsense` with `in`: `in nonsense`
  |
  = help: some possible visibility restrictions are:
          `pub(crate)`: visible only on the current crate
          `pub(super)`: visible only in the current module's parent
          `pub(in path::to::module)`: visible only on the specified path