From 1bbcceb9f6c21ad236eda0af1b2fa8928c3d32d6 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 29 Dec 2015 14:00:38 +0100 Subject: Move pub-macro-rules.rs test to parse-fail directory --- src/test/compile-fail/pub-macro-rules.rs | 27 --------------------------- src/test/parse-fail/pub-macro-rules.rs | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 src/test/compile-fail/pub-macro-rules.rs create mode 100644 src/test/parse-fail/pub-macro-rules.rs (limited to 'src') diff --git a/src/test/compile-fail/pub-macro-rules.rs b/src/test/compile-fail/pub-macro-rules.rs deleted file mode 100644 index 93b992f2f8a..00000000000 --- a/src/test/compile-fail/pub-macro-rules.rs +++ /dev/null @@ -1,27 +0,0 @@ -// 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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -#[macro_use] mod bleh { - pub macro_rules! foo { //~ ERROR can't qualify macro_rules invocation with `pub` - //~^ HELP did you mean #[macro_export]? - ($n:ident) => ( - fn $n () -> i32 { - 1 - } - ) - } - -} - -foo!(meh); - -fn main() { - println!("{}", meh()); -} diff --git a/src/test/parse-fail/pub-macro-rules.rs b/src/test/parse-fail/pub-macro-rules.rs new file mode 100644 index 00000000000..93b992f2f8a --- /dev/null +++ b/src/test/parse-fail/pub-macro-rules.rs @@ -0,0 +1,27 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[macro_use] mod bleh { + pub macro_rules! foo { //~ ERROR can't qualify macro_rules invocation with `pub` + //~^ HELP did you mean #[macro_export]? + ($n:ident) => ( + fn $n () -> i32 { + 1 + } + ) + } + +} + +foo!(meh); + +fn main() { + println!("{}", meh()); +} -- cgit 1.4.1-3-g733a5