about summary refs log tree commit diff
path: root/src/test/rustdoc/structfields.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-12-12 00:33:00 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-01-27 12:46:18 +0100
commit270151bffb0be259ff20feee3801bb124c2c39ec (patch)
treeeee429f5d63bd5218024cb343db153b0fe61da98 /src/test/rustdoc/structfields.rs
parent1ac727772bd91b6e35b624e3252e6a6bd681c70b (diff)
downloadrust-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.rs7
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 {