We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c305c9 commit fe0159fCopy full SHA for fe0159f
tools/hermes/tests/fixtures/nested_out_of_line_mod/source/src/lib.rs
@@ -1,8 +1,10 @@
1
pub fn outer_logic() {
2
- // This module declaration is hidden inside a function.
3
- // Hermes must NOT load `hidden.rs`.
4
- #[path = "hidden.rs"]
5
- mod hidden;
+ mod inner {
+ // Despite living in `mod inner`, `inner` itself is hidden inside a
+ // function. Hermes must reject all annotated items inside `mod hidden`.
+ #[path = "hidden.rs"]
6
+ mod hidden;
7
+ }
8
}
9
10
/// ```lean
0 commit comments