mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Add a test for #3004
This commit is contained in:
@@ -466,3 +466,8 @@ macro_rules! bar {
|
||||
RefCell::new(RootedTraceableSet::new(1234)) ;
|
||||
|
||||
] ;
|
||||
|
||||
fn issue3004() {
|
||||
foo!(|_| { ( ) });
|
||||
stringify!(( foo+ ));
|
||||
}
|
||||
|
||||
@@ -1043,3 +1043,8 @@ macro_rules! bar {
|
||||
static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
|
||||
RefCell::new(RootedTraceableSet::new(1234));
|
||||
];
|
||||
|
||||
fn issue3004() {
|
||||
foo!(|_| { () });
|
||||
stringify!((foo+));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user