Skip to content

Commit 30cda58

Browse files
committed
Add a test for rust-lang#3004
1 parent 3f6ea77 commit 30cda58

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/source/macros.rs

+5
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,8 @@ static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
466466
RefCell::new(RootedTraceableSet::new(1234)) ;
467467

468468
] ;
469+
470+
fn issue3004() {
471+
foo!(|_| { ( ) });
472+
stringify!(( foo+ ));
473+
}

tests/target/macros.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1043,3 +1043,8 @@ thread_local![
10431043
static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
10441044
RefCell::new(RootedTraceableSet::new(1234));
10451045
];
1046+
1047+
fn issue3004() {
1048+
foo!(|_| { () });
1049+
stringify!((foo+));
1050+
}

0 commit comments

Comments
 (0)