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-private.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-private.rs')
| -rw-r--r-- | tests/rustdoc/files-creation-private.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc/files-creation-private.rs b/tests/rustdoc/files-creation-private.rs new file mode 100644 index 00000000000..ca2327e0f91 --- /dev/null +++ b/tests/rustdoc/files-creation-private.rs @@ -0,0 +1,18 @@ +#![crate_name="foo"] + +// @!has "foo/priv/index.html" +// @!has "foo/priv/struct.Foo.html" +mod private { + pub struct Foo; +} + +// @has "foo/struct.Bar.html" +pub use crate::private::Foo as Bar; + +// @!has "foo/foo/index.html" +mod foo { + pub mod subfoo {} +} + +// @has "foo/bar/index.html" +pub use crate::foo::subfoo as bar; |
