summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/type-layout-flag-required.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/type-layout-flag-required.rs')
-rw-r--r--src/test/rustdoc/type-layout-flag-required.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/rustdoc/type-layout-flag-required.rs b/src/test/rustdoc/type-layout-flag-required.rs
new file mode 100644
index 000000000..a01fbd229
--- /dev/null
+++ b/src/test/rustdoc/type-layout-flag-required.rs
@@ -0,0 +1,4 @@
+// Tests that `--show-type-layout` is required in order to show layout info.
+
+// @!has type_layout_flag_required/struct.Foo.html 'Size: '
+pub struct Foo(usize);