summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-04 11:07:14 +0200
committerGitHub <noreply@github.com>2018-04-04 11:07:14 +0200
commitf4f13883e5f888d36681b4390bc07fdb1e4eb7e0 (patch)
treef306afa7125684f58fd74615f0a3502c11ae927e /src/test/rustdoc
parente0c180362e1729bc27474b6ce08710e41d910094 (diff)
parentcb3097567f92adc32f15c1cc4619220e3c98505b (diff)
downloadrust-f4f13883e5f888d36681b4390bc07fdb1e4eb7e0.tar.gz
rust-f4f13883e5f888d36681b4390bc07fdb1e4eb7e0.zip
Rollup merge of #49532 - Phlosioneer:32556-rustdoc-regression-test, r=GuillaumeGomez
Add test for rustdoc ignore test

This will check for regression on issue #32556
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-32556.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-32556.rs b/src/test/rustdoc/issue-32556.rs
new file mode 100644
index 00000000000..3ab138079a1
--- /dev/null
+++ b/src/test/rustdoc/issue-32556.rs
@@ -0,0 +1,15 @@
+// Copyright 2018 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.
+
+/// Blah blah blah
+/// ```ignore (testing rustdoc's handling of ignore)
+/// bad_assert!();
+/// ```
+pub fn foo() {}