about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-12-08 10:48:07 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-12-08 11:07:39 +0000
commit6ffa274bb5095ad13b7df1e284d526a7c39e3f46 (patch)
tree09e7064f611a898f8c95d5da3802ffb827613fc2 /src/test/rustdoc
parent7b06438d8349c1a6bbeb29c2a1bd874553a8625c (diff)
downloadrust-6ffa274bb5095ad13b7df1e284d526a7c39e3f46.tar.gz
rust-6ffa274bb5095ad13b7df1e284d526a7c39e3f46.zip
Fix doc-tests on exported `macro_rules!`.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-38219.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-38219.rs b/src/test/rustdoc/issue-38219.rs
new file mode 100644
index 00000000000..19b338bf560
--- /dev/null
+++ b/src/test/rustdoc/issue-38219.rs
@@ -0,0 +1,18 @@
+// Copyright 2016 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.
+
+// compile-flags:--test
+// should-fail
+
+/// ```
+/// fail
+/// ```
+#[macro_export]
+macro_rules! foo { () => {} }