File tree 1 file changed +19
-6
lines changed
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ feature( rustc_private) ]
12
- macro_rules! m {
13
- ( ) => { #[ macro_use] extern crate syntax; }
11
+ // aux-build:two_macros.rs
12
+
13
+ #![ feature( rustc_attrs) ]
14
+ #![ allow( unused) ]
15
+
16
+ fn f ( ) {
17
+ let _ = macro_one ! ( ) ;
14
18
}
19
+ #[ macro_use( macro_one) ] // Check that this macro is usable in the above function
20
+ extern crate two_macros;
21
+
22
+ macro_rules! m { ( ) => {
23
+ fn g( ) {
24
+ macro_two!( ) ;
25
+ }
26
+ #[ macro_use( macro_two) ] // Check that this macro is usable in the above function
27
+ extern crate two_macros as _two_macros;
28
+ } }
15
29
m ! ( ) ;
16
30
17
- fn main ( ) {
18
- help ! ( ) ; //~ ERROR unexpected end of macro invocation
19
- }
31
+ #[ rustc_error]
32
+ fn main ( ) { } //~ ERROR compilation successful
You can’t perform that action at this time.
0 commit comments