diff options
Diffstat (limited to '')
-rw-r--r-- | tests/rustdoc/macro-ice-16019.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/macro-ice-16019.rs b/tests/rustdoc/macro-ice-16019.rs new file mode 100644 index 000000000..d0f82e0a3 --- /dev/null +++ b/tests/rustdoc/macro-ice-16019.rs @@ -0,0 +1,11 @@ +// https://github.com/rust-lang/rust/issues/16019 + +macro_rules! define_struct { + ($rounds:expr) => ( + struct Struct { + sk: [u32; $rounds + 1] + } + ) +} + +define_struct!(2); |