Add a test for #3004

This commit is contained in:
topecongiro 2018-12-20 01:13:18 +09:00
parent 3f6ea7788b
commit 30cda580bd
2 changed files with 10 additions and 0 deletions

View file

@ -466,3 +466,8 @@ static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
RefCell::new(RootedTraceableSet::new(1234)) ;
] ;
fn issue3004() {
foo!(|_| { ( ) });
stringify!(( foo+ ));
}

View file

@ -1043,3 +1043,8 @@ thread_local![
static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
RefCell::new(RootedTraceableSet::new(1234));
];
fn issue3004() {
foo!(|_| { () });
stringify!((foo+));
}