diff options
| author | Jonas Schievink <jonas@schievink.net> | 2015-11-25 21:01:23 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonas@schievink.net> | 2015-11-25 21:01:23 +0100 |
| commit | 47cb5d8dbde89702daed40e5a100a31b07ac1b6e (patch) | |
| tree | 319f16c835a77d1e3c340bc50d4c2c42c687afdf | |
| parent | fc9f9882f351b0823b2e3f140cf28c76bc8787b7 (diff) | |
| download | rust-47cb5d8dbde89702daed40e5a100a31b07ac1b6e.tar.gz rust-47cb5d8dbde89702daed40e5a100a31b07ac1b6e.zip | |
Add a test
| -rw-r--r-- | src/test/compile-fail/macro-missing-fragment.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/compile-fail/macro-missing-fragment.rs b/src/test/compile-fail/macro-missing-fragment.rs new file mode 100644 index 00000000000..66f4ce55be8 --- /dev/null +++ b/src/test/compile-fail/macro-missing-fragment.rs @@ -0,0 +1,17 @@ +// 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! m { + ( $( any_token $field_rust_type )* ) => {}; //~ ERROR missing fragment +} + +fn main() { + m!(); +} |
