diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-12-12 00:33:00 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-01-27 12:46:18 +0100 |
| commit | 270151bffb0be259ff20feee3801bb124c2c39ec (patch) | |
| tree | eee429f5d63bd5218024cb343db153b0fe61da98 /src/test/rustdoc/structfields.rs | |
| parent | 1ac727772bd91b6e35b624e3252e6a6bd681c70b (diff) | |
| download | rust-270151bffb0be259ff20feee3801bb124c2c39ec.tar.gz rust-270151bffb0be259ff20feee3801bb124c2c39ec.zip | |
Add generate-old-style-files option to rustdoc
Diffstat (limited to 'src/test/rustdoc/structfields.rs')
| -rw-r--r-- | src/test/rustdoc/structfields.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/structfields.rs b/src/test/rustdoc/structfields.rs index cd8957aa2ec..bfe116acffc 100644 --- a/src/test/rustdoc/structfields.rs +++ b/src/test/rustdoc/structfields.rs @@ -1,5 +1,8 @@ +// compile-flags:--generate-redirect-pages + // @has structfields/Foo.t.html // @has - struct.Foo.html +// @has structfields/struct.Foo.html pub struct Foo { // @has - //pre "pub a: ()" pub a: (), @@ -13,6 +16,8 @@ pub struct Foo { pub d: usize, } +// @has structfields/Bar.t.html +// @has - struct.Bar.html // @has structfields/struct.Bar.html pub struct Bar { // @has - //pre "pub a: ()" @@ -20,6 +25,8 @@ pub struct Bar { // @!has - //pre "// some fields omitted" } +// @has structfields/Qux.t.html +// @has - enum.Qux.html // @has structfields/enum.Qux.html pub enum Qux { Quz { |
