2019-08-19 15:10:07 -05:00
|
|
|
// Opaque macro can eagerly expand its input without breaking its resolution.
|
|
|
|
// Regression test for issue #63685.
|
|
|
|
|
2019-08-19 15:44:57 -05:00
|
|
|
// check-pass
|
|
|
|
|
2019-08-19 15:10:07 -05:00
|
|
|
macro_rules! foo {
|
|
|
|
() => {
|
|
|
|
"foo"
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! bar {
|
|
|
|
() => {
|
2019-08-19 15:44:57 -05:00
|
|
|
foo!()
|
2019-08-19 15:10:07 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
format_args!(bar!());
|
|
|
|
}
|