File: nested.rs

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (32 lines) | stat: -rw-r--r-- 1,319 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//@ edition:2018
//@ compile-flags: --crate-version 1.0.0

//@ is "$.crate_version" \"1.0.0\"
//@ has "$.index[?(@.name=='nested')].inner.module"
//@ is "$.index[?(@.name=='nested')].inner.module.is_crate" true

//@ set l1_id = "$.index[?(@.name=='l1')].id"
//@ ismany "$.index[?(@.name=='nested')].inner.module.items[*]" $l1_id

//@ has "$.index[?(@.name=='l1')].inner.module"
//@ is "$.index[?(@.name=='l1')].inner.module.is_crate" false
pub mod l1 {
    //@ has "$.index[?(@.name=='l3')].inner.module"
    //@ is "$.index[?(@.name=='l3')].inner.module.is_crate" false
    //@ set l3_id = "$.index[?(@.name=='l3')].id"
    pub mod l3 {

        //@ has "$.index[?(@.name=='L4')].inner.struct"
        //@ is "$.index[?(@.name=='L4')].inner.struct.kind" '"unit"'
        //@ set l4_id = "$.index[?(@.name=='L4')].id"
        //@ ismany "$.index[?(@.name=='l3')].inner.module.items[*]" $l4_id
        pub struct L4;
    }
    //@ is "$.index[?(@.inner.use)].inner.use.is_glob" false
    //@ is "$.index[?(@.inner.use)].inner.use.source" '"l3::L4"'
    //@ is "$.index[?(@.inner.use)].inner.use.is_glob" false
    //@ is "$.index[?(@.inner.use)].inner.use.id" $l4_id
    //@ set l4_use_id = "$.index[?(@.inner.use)].id"
    pub use l3::L4;
}
//@ ismany "$.index[?(@.name=='l1')].inner.module.items[*]" $l3_id $l4_use_id