summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/cap-lints.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/cap-lints.rs')
-rw-r--r--src/test/rustdoc/cap-lints.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/cap-lints.rs b/src/test/rustdoc/cap-lints.rs
new file mode 100644
index 000000000..08a353396
--- /dev/null
+++ b/src/test/rustdoc/cap-lints.rs
@@ -0,0 +1,9 @@
+// This should fail a normal compile due to non_camel_case_types,
+// It should pass a doc-compile as it only needs to type-check and
+// therefore should not concern itself with the lints.
+#[deny(warnings)]
+
+// @has cap_lints/struct.Foo.html //* 'Foo'
+pub struct Foo {
+ field: i32,
+}