about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-06 16:32:57 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-07 17:54:34 -0700
commitc47bb7cd50e932a99213e004010e0f262f253446 (patch)
tree88539a03bb7b4912c33ae44d6c33b8955ab43949 /src
parenta30f28edad0244c855e9f4b52250efe4e28bc039 (diff)
downloadrust-c47bb7cd50e932a99213e004010e0f262f253446.tar.gz
rust-c47bb7cd50e932a99213e004010e0f262f253446.zip
rustdoc: Add a test for fixed issue #16019
Closes #16019
Diffstat (limited to 'src')
-rw-r--r--src/test/rustdoc/issue-16019.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-16019.rs b/src/test/rustdoc/issue-16019.rs
new file mode 100644
index 00000000000..7aae6a05950
--- /dev/null
+++ b/src/test/rustdoc/issue-16019.rs
@@ -0,0 +1,19 @@
+// Copyright 2015 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.
+
+macro_rules! define_struct {
+    ($rounds:expr) => (
+        struct Struct {
+            sk: [u32; $rounds + 1]
+        }
+        )
+}
+
+define_struct!(2);