about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2013-12-08 18:41:24 -0800
committerSteven Fackler <sfackler@gmail.com>2013-12-08 20:08:49 -0800
commit4d688e8214e2589ae56aca2eb720f2eb68492ea2 (patch)
treea2437c78b6ee857974b3c34317d958c3f6116d94 /src/test
parenta6310f6ad3434a03d5c257db5eae85b7b7522c29 (diff)
downloadrust-4d688e8214e2589ae56aca2eb720f2eb68492ea2.tar.gz
rust-4d688e8214e2589ae56aca2eb720f2eb68492ea2.zip
Accept unsugared docs in missing-doc lint
Closes #10853
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/issue-10853.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-10853.rs b/src/test/run-pass/issue-10853.rs
new file mode 100644
index 00000000000..d56396e11b4
--- /dev/null
+++ b/src/test/run-pass/issue-10853.rs
@@ -0,0 +1,22 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#[deny(missing_doc)];
+#[doc="module"];
+
+#[doc="struct"]
+pub struct Foo;
+
+pub fn foo() {
+    #[doc="fn"];
+}
+
+#[doc="main"]
+pub fn main() {}