diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-19 21:18:11 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-21 15:21:32 +0200 |
| commit | 3ad595a31610b5094f66fa2855bde1f898a5d1f5 (patch) | |
| tree | a48e94cc66518175c0f7dcc8dd5a20bfea9851d5 /tests/rustdoc/files-creation-hidden.rs | |
| parent | db95734b9d41e00c17bb934b96ffd8cb660a2248 (diff) | |
| download | rust-3ad595a31610b5094f66fa2855bde1f898a5d1f5.tar.gz rust-3ad595a31610b5094f66fa2855bde1f898a5d1f5.zip | |
Add tests for invalid files generation
Diffstat (limited to 'tests/rustdoc/files-creation-hidden.rs')
| -rw-r--r-- | tests/rustdoc/files-creation-hidden.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/rustdoc/files-creation-hidden.rs b/tests/rustdoc/files-creation-hidden.rs new file mode 100644 index 00000000000..bcabbfc91e8 --- /dev/null +++ b/tests/rustdoc/files-creation-hidden.rs @@ -0,0 +1,23 @@ +#![crate_name="foo"] + +// @!has "foo/struct.Foo.html" +#[doc(hidden)] +pub struct Foo; + +// @!has "foo/struct.Bar.html" +pub use crate::Foo as Bar; + +// @!has "foo/struct.Baz.html" +#[doc(hidden)] +pub use crate::Foo as Baz; + +// @!has "foo/foo/index.html" +#[doc(hidden)] +pub mod foo {} + +// @!has "foo/bar/index.html" +pub use crate::foo as bar; + +// @!has "foo/baz/index.html" +#[doc(hidden)] +pub use crate::foo as baz; |
