44
55#![ crate_name = "foo" ]
66
7+ // @!has 'foo/index.html' '//a[@href="struct.FooPublic.html"]/..' 'FooPublic 🔒'
78// @has 'foo/struct.FooPublic.html' '//pre' 'pub struct FooPublic'
89pub struct FooPublic ;
10+ // @has 'foo/index.html' '//a[@href="struct.FooJustCrate.html"]/..' 'FooJustCrate 🔒'
911// @has 'foo/struct.FooJustCrate.html' '//pre' 'pub(crate) struct FooJustCrate'
1012crate struct FooJustCrate ;
13+ // @has 'foo/index.html' '//a[@href="struct.FooPubCrate.html"]/..' 'FooPubCrate 🔒'
1114// @has 'foo/struct.FooPubCrate.html' '//pre' 'pub(crate) struct FooPubCrate'
1215pub ( crate ) struct FooPubCrate ;
16+ // @has 'foo/index.html' '//a[@href="struct.FooSelf.html"]/..' 'FooSelf 🔒'
1317// @has 'foo/struct.FooSelf.html' '//pre' 'pub(crate) struct FooSelf'
1418pub ( self ) struct FooSelf ;
19+ // @has 'foo/index.html' '//a[@href="struct.FooInSelf.html"]/..' 'FooInSelf 🔒'
1520// @has 'foo/struct.FooInSelf.html' '//pre' 'pub(crate) struct FooInSelf'
1621pub ( in self ) struct FooInSelf ;
22+ // @has 'foo/index.html' '//a[@href="struct.FooPriv.html"]/..' 'FooPriv 🔒'
1723// @has 'foo/struct.FooPriv.html' '//pre' 'pub(crate) struct FooPriv'
1824struct FooPriv ;
1925
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 🔒'
2033mod a {
34+ // @has 'foo/a/index.html' '//a[@href="struct.FooASuper.html"]/..' 'FooASuper 🔒'
2135 // @has 'foo/a/struct.FooASuper.html' '//pre' 'pub(crate) struct FooASuper'
2236 pub ( super ) struct FooASuper ;
37+ // @has 'foo/a/index.html' '//a[@href="struct.FooAInSuper.html"]/..' 'FooAInSuper 🔒'
2338 // @has 'foo/a/struct.FooAInSuper.html' '//pre' 'pub(crate) struct FooAInSuper'
2439 pub ( in super ) struct FooAInSuper ;
40+ // @has 'foo/a/index.html' '//a[@href="struct.FooAInA.html"]/..' 'FooAInA 🔒'
2541 // @has 'foo/a/struct.FooAInA.html' '//pre' 'struct FooAInA'
2642 // @!has 'foo/a/struct.FooAInA.html' '//pre' 'pub'
2743 pub ( in a) struct FooAInA ;
44+ // @has 'foo/a/index.html' '//a[@href="struct.FooAPriv.html"]/..' 'FooAPriv 🔒'
2845 // @has 'foo/a/struct.FooAPriv.html' '//pre' 'struct FooAPriv'
2946 // @!has 'foo/a/struct.FooAPriv.html' '//pre' 'pub'
3047 struct FooAPriv ;
3148
49+ // @has 'foo/a/index.html' '//a[@href="b/index.html"]/..' 'b 🔒'
3250 mod b {
51+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBSuper.html"]/..' 'FooBSuper 🔒'
3352 // @has 'foo/a/b/struct.FooBSuper.html' '//pre' 'pub(super) struct FooBSuper'
3453 pub ( super ) struct FooBSuper ;
54+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBInSuperSuper.html"]/..' 'FooBInSuperSuper 🔒'
3555 // @has 'foo/a/b/struct.FooBInSuperSuper.html' '//pre' 'pub(crate) struct FooBInSuperSuper'
3656 pub ( in super :: super ) struct FooBInSuperSuper ;
57+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBInAB.html"]/..' 'FooBInAB 🔒'
3758 // @has 'foo/a/b/struct.FooBInAB.html' '//pre' 'struct FooBInAB'
3859 // @!has 'foo/a/b/struct.FooBInAB.html' '//pre' 'pub'
3960 pub ( in a:: b) struct FooBInAB ;
61+ // @has 'foo/a/b/index.html' '//a[@href="struct.FooBPriv.html"]/..' 'FooBPriv 🔒'
4062 // @has 'foo/a/b/struct.FooBPriv.html' '//pre' 'struct FooBPriv'
4163 // @!has 'foo/a/b/struct.FooBPriv.html' '//pre' 'pub'
4264 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 ;
4369 }
4470}
4571
@@ -53,13 +79,18 @@ mod a {
5379//
5480// @has 'foo/trait.PubTrait.html' '//pre' 'fn function();'
5581// @!has 'foo/trait.PubTrait.html' '//pre' 'pub fn function();'
82+ //
83+ // @!has 'foo/index.html' '//a[@href="trait.PubTrait.html"]/..' 'PubTrait 🔒'
5684
5785pub trait PubTrait {
5886 type Type ;
5987 const CONST : usize ;
6088 fn function ( ) ;
6189}
6290
91+ // @has 'foo/index.html' '//a[@href="trait.PrivTrait.html"]/..' 'PrivTrait 🔒'
92+ trait PrivTrait { }
93+
6394// @has 'foo/struct.FooPublic.html' '//h4[@class="code-header"]' 'type Type'
6495// @!has 'foo/struct.FooPublic.html' '//h4[@class="code-header"]' 'pub type Type'
6596//
0 commit comments