mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Merge pull request #3260 from topecongiro/issue-3004
Do not modify original source code inside macro call
This commit is contained in:
@@ -466,3 +466,8 @@ macro_rules! bar {
|
||||
RefCell::new(RootedTraceableSet::new(1234)) ;
|
||||
|
||||
] ;
|
||||
|
||||
fn issue3004() {
|
||||
foo!(|_| { ( ) });
|
||||
stringify!(( foo+ ));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user