mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
283 B
Rust
20 lines
283 B
Rust
// Opaque macro can eagerly expand its input without breaking its resolution.
|
|
// Regression test for issue #63685.
|
|
|
|
//@ check-pass
|
|
|
|
macro_rules! foo {
|
|
() => {
|
|
"foo"
|
|
};
|
|
}
|
|
|
|
macro_rules! bar {
|
|
() => {
|
|
foo!()
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
format_args!(bar!());
|
|
}
|