Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Oct 11, 2016
1 parent a4c0daa commit 829bd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/compile-fail/macro-use-scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn f() {
#[macro_use(macro_one)] // Check that this macro is usable in the above function
extern crate two_macros;

fn g() {
macro_two!();
}
macro_rules! m { () => {
fn g() {
macro_two!();
}
#[macro_use(macro_two)] // Check that this macro is usable in the above function
extern crate two_macros as _two_macros;
} }
Expand Down

0 comments on commit 829bd8c

Please sign in to comment.