Skip to content

Commit 829bd8c

Browse files
committed
Add test.
1 parent a4c0daa commit 829bd8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/compile-fail/macro-use-scope.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ fn f() {
1919
#[macro_use(macro_one)] // Check that this macro is usable in the above function
2020
extern crate two_macros;
2121

22+
fn g() {
23+
macro_two!();
24+
}
2225
macro_rules! m { () => {
23-
fn g() {
24-
macro_two!();
25-
}
2626
#[macro_use(macro_two)] // Check that this macro is usable in the above function
2727
extern crate two_macros as _two_macros;
2828
} }

0 commit comments

Comments
 (0)