mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
20 lines
286 B
Rust
20 lines
286 B
Rust
![]() |
// issue#123911
|
||
|
// issue#123912
|
||
|
|
||
|
macro_rules! m {
|
||
|
($p: path) => {
|
||
|
#[$p]
|
||
|
struct S;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
macro_rules! p {
|
||
|
() => {};
|
||
|
}
|
||
|
|
||
|
m!(generic<p!()>);
|
||
|
//~^ ERROR: unexpected generic arguments in path
|
||
|
//~| ERROR: cannot find attribute `generic` in this scope
|
||
|
|
||
|
fn main() {}
|