diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-09-06 18:27:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-06 18:27:49 -0600 |
| commit | 5c79f6d05ca637a0ad568bf6ec3767203f55e530 (patch) | |
| tree | e556aae28b14a057840def7c980060f6d348b3dd | |
| parent | 2dabf35771cb6b3813e5aca78b27d7cc56b176d6 (diff) | |
| parent | f2250c4b01e103d1289662ae31c5e2508b014af5 (diff) | |
| download | rust-5c79f6d05ca637a0ad568bf6ec3767203f55e530.tar.gz rust-5c79f6d05ca637a0ad568bf6ec3767203f55e530.zip | |
Rollup merge of #44277 - mattico:test-33185, r=nikomatsakis
Add test for #33185 Closes #33185
| -rw-r--r-- | src/test/run-pass/issue-33185.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-33185.rs b/src/test/run-pass/issue-33185.rs new file mode 100644 index 00000000000..f12e65323bc --- /dev/null +++ b/src/test/run-pass/issue-33185.rs @@ -0,0 +1,26 @@ +// 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. + +#![allow(dead_code)] + +#[macro_export] +macro_rules! state { + ( $( $name:ident : $field:ty )* ) => ( + #[derive(Default)] + struct State { + $($name : $field),* + } + ) +} + +state! { x: i64 } + +pub fn main() { +} |
