4
4
5
5
#![ crate_name = "foo" ]
6
6
7
+ // @!has 'foo/index.html' '//a[@href="struct.FooPublic.html"]/..' 'FooPublic 🔒'
7
8
// @has 'foo/struct.FooPublic.html' '//pre' 'pub struct FooPublic'
8
9
pub struct FooPublic ;
10
+ // @has 'foo/index.html' '//a[@href="struct.FooJustCrate.html"]/..' 'FooJustCrate 🔒'
9
11
// @has 'foo/struct.FooJustCrate.html' '//pre' 'pub(crate) struct FooJustCrate'
10
12
crate struct FooJustCrate ;
13
+ // @has 'foo/index.html' '//a[@href="struct.FooPubCrate.html"]/..' 'FooPubCrate 🔒'
11
14
// @has 'foo/struct.FooPubCrate.html' '//pre' 'pub(crate) struct FooPubCrate'
12
15
pub ( crate ) struct FooPubCrate ;
16
+ // @has 'foo/index.html' '//a[@href="struct.FooSelf.html"]/..' 'FooSelf 🔒'
13
17
// @has 'foo/struct.FooSelf.html' '//pre' 'pub(crate) struct FooSelf'
14
18
pub ( self ) struct FooSelf ;
19
+ // @has 'foo/index.html' '//a[@href="struct.FooInSelf.html"]/..' 'FooInSelf 🔒'
15
20
// @has 'foo/struct.FooInSelf.html' '//pre' 'pub(crate) struct FooInSelf'
16
21
pub ( in self ) struct FooInSelf ;
22
+ // @has 'foo/index.html' '//a[@href="struct.FooPriv.html"]/..' 'FooPriv 🔒'
17
23
// @has 'foo/struct.FooPriv.html' '//pre' 'pub(crate) struct FooPriv'
18
24
struct FooPriv ;
19
25
26
+ // @!has 'foo/index.html' '//a[@href="pub_mod/index.html"]/..' 'pub_mod 🔒'
27
+ pub mod pub_mod { }
28
+
29
+ // @has 'foo/index.html' '//a[@href="pub_crate_mod/index.html"]/..' 'pub_crate_mod 🔒'
30
+ pub ( crate ) mod pub_crate_mod { }
31
+
32
+ // @has 'foo/index.html' '//a[@href="a/index.html"]/..' 'a 🔒'
20
33
mod a {
34
+ // @has 'foo/a/index.html' '//a[@href="struct.FooASuper.html"]/..' 'FooASuper 🔒'
21
35
// @has 'foo/a/struct.FooASuper.html' '//pre' 'pub(crate) struct FooASuper'
22
36
pub ( super ) struct FooASuper ;
37
+ // @has 'foo/a/index.html' '//a[@href="struct.FooAInSuper.html"]/..' 'FooAInSuper 🔒'
23
38
// @has 'foo/a/struct.FooAInSuper.html' '//pre' 'pub(crate) struct FooAInSuper'
24
39
pub ( in super ) struct FooAInSuper ;
40
+ // @has 'foo/a/index.html' '//a[@href="struct.FooAInA.html"]/..' 'FooAInA 🔒'
25
41
// @has 'foo/a/struct.FooAInA.html' '//pre' 'struct FooAInA'
26
42
// @!has 'foo/a/struct.FooAInA.html' '//pre' 'pub'
27
43
pub ( in a) struct FooAInA ;
44
+ // @has 'foo/a/index.html' '//a[@href="struct.FooAPriv.html"]/..' 'FooAPriv 🔒'
28
45
// @has 'foo/a/struct.FooAPriv.html' '//pre' 'struct FooAPriv'
29
46
// @!has 'foo/a/struct.FooAPriv.html' '//pre' 'pub'
30
47
struct FooAPriv ;
31
48
49
+ // @has 'foo/a/index.html' '//a[@href="b/index.html"]/..' 'b 🔒'
32
50
mod b {
51
+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBSuper.html"]/..' 'FooBSuper 🔒'
33
52
// @has 'foo/a/b/struct.FooBSuper.html' '//pre' 'pub(super) struct FooBSuper'
34
53
pub ( super ) struct FooBSuper ;
54
+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBInSuperSuper.html"]/..' 'FooBInSuperSuper 🔒'
35
55
// @has 'foo/a/b/struct.FooBInSuperSuper.html' '//pre' 'pub(crate) struct FooBInSuperSuper'
36
56
pub ( in super :: super ) struct FooBInSuperSuper ;
57
+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBInAB.html"]/..' 'FooBInAB 🔒'
37
58
// @has 'foo/a/b/struct.FooBInAB.html' '//pre' 'struct FooBInAB'
38
59
// @!has 'foo/a/b/struct.FooBInAB.html' '//pre' 'pub'
39
60
pub ( in a:: b) struct FooBInAB ;
61
+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBPriv.html"]/..' 'FooBPriv 🔒'
40
62
// @has 'foo/a/b/struct.FooBPriv.html' '//pre' 'struct FooBPriv'
41
63
// @!has 'foo/a/b/struct.FooBPriv.html' '//pre' 'pub'
42
64
struct FooBPriv ;
65
+
66
+ // @!has 'foo/a/b/index.html' '//a[@href="struct.FooBPub.html"]/..' 'FooBPub 🔒'
67
+ // @has 'foo/a/b/struct.FooBPub.html' '//pre' 'pub struct FooBPub'
68
+ pub struct FooBPub ;
43
69
}
44
70
}
45
71
@@ -53,13 +79,18 @@ mod a {
53
79
//
54
80
// @has 'foo/trait.PubTrait.html' '//pre' 'fn function();'
55
81
// @!has 'foo/trait.PubTrait.html' '//pre' 'pub fn function();'
82
+ //
83
+ // @!has 'foo/index.html' '//a[@href="trait.PubTrait.html"]/..' 'PubTrait 🔒'
56
84
57
85
pub trait PubTrait {
58
86
type Type ;
59
87
const CONST : usize ;
60
88
fn function ( ) ;
61
89
}
62
90
91
+ // @has 'foo/index.html' '//a[@href="trait.PrivTrait.html"]/..' 'PrivTrait 🔒'
92
+ trait PrivTrait { }
93
+
63
94
// @has 'foo/struct.FooPublic.html' '//h4[@class="code-header"]' 'type Type'
64
95
// @!has 'foo/struct.FooPublic.html' '//h4[@class="code-header"]' 'pub type Type'
65
96
//
0 commit comments