]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/pub-restricted.rs
1 // ignore-tidy-linelength
3 // compile-flags: --document-private-items
5 #![feature(crate_visibility_modifier)]
9 // @has 'foo/struct.FooPublic.html' '//pre' 'pub struct FooPublic'
11 // @has 'foo/struct.FooJustCrate.html' '//pre' 'pub(crate) struct FooJustCrate'
12 crate struct FooJustCrate
;
13 // @has 'foo/struct.FooPubCrate.html' '//pre' 'pub(crate) struct FooPubCrate'
14 pub(crate) struct FooPubCrate
;
15 // @has 'foo/struct.FooSelf.html' '//pre' 'pub(self) struct FooSelf'
16 pub(self) struct FooSelf
;
17 // @has 'foo/struct.FooInSelf.html' '//pre' 'pub(self) struct FooInSelf'
18 pub(in self) struct FooInSelf
;
20 // @has 'foo/a/struct.FooSuper.html' '//pre' 'pub(super) struct FooSuper'
21 pub(super) struct FooSuper
;
22 // @has 'foo/a/struct.FooInSuper.html' '//pre' 'pub(super) struct FooInSuper'
23 pub(in super) struct FooInSuper
;
24 // @has 'foo/a/struct.FooInA.html' '//pre' 'pub(in a) struct FooInA'
25 pub(in a
) struct FooInA
;
27 // @has 'foo/a/b/struct.FooInSelfSuperB.html' '//pre' 'pub(in self::super::b) struct FooInSelfSuperB'
28 pub(in self::super::b
) struct FooInSelfSuperB
;
29 // @has 'foo/a/b/struct.FooInSuperSuper.html' '//pre' 'pub(in super::super) struct FooInSuperSuper'
30 pub(in super::super) struct FooInSuperSuper
;
31 // @has 'foo/a/b/struct.FooInAB.html' '//pre' 'pub(in a::b) struct FooInAB'
32 pub(in a
::b
) struct FooInAB
;