diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-06 16:32:57 -0700 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-07 17:54:34 -0700 | 
| commit | c47bb7cd50e932a99213e004010e0f262f253446 (patch) | |
| tree | 88539a03bb7b4912c33ae44d6c33b8955ab43949 /src | |
| parent | a30f28edad0244c855e9f4b52250efe4e28bc039 (diff) | |
| download | rust-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.rs | 19 | 
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); | 
