Merge pull request #3260 from topecongiro/issue-3004

Do not modify original source code inside macro call
This commit is contained in:
Nick Cameron
2019-01-07 17:39:05 +13:00
committed by GitHub
4 changed files with 19 additions and 2 deletions
+5
View File
@@ -466,3 +466,8 @@ macro_rules! bar {
RefCell::new(RootedTraceableSet::new(1234)) ;
] ;
fn issue3004() {
foo!(|_| { ( ) });
stringify!(( foo+ ));
}