]> git.proxmox.com Git - rustc.git/blobdiff - src/test/rustdoc/visibility.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / rustdoc / visibility.rs
index c573e1b77f901c8e547360cbb19178c9ee6b64d1..4099b54f0815209706ddcf6750221c3e17df23da 100644 (file)
@@ -1,7 +1,5 @@
 // compile-flags: --document-private-items
 
-#![feature(crate_visibility_modifier)]
-
 #![crate_name = "foo"]
 
 // @!has 'foo/index.html' '//a[@href="struct.FooPublic.html"]/..' 'FooPublic ðŸ”’'
@@ -9,7 +7,7 @@
 pub struct FooPublic;
 // @has 'foo/index.html' '//a[@href="struct.FooJustCrate.html"]/..' 'FooJustCrate ðŸ”’'
 // @has 'foo/struct.FooJustCrate.html' '//pre' 'pub(crate) struct FooJustCrate'
-crate struct FooJustCrate;
+pub(crate) struct FooJustCrate;
 // @has 'foo/index.html' '//a[@href="struct.FooPubCrate.html"]/..' 'FooPubCrate ðŸ”’'
 // @has 'foo/struct.FooPubCrate.html' '//pre' 'pub(crate) struct FooPubCrate'
 pub(crate) struct FooPubCrate;