rust/tests/ui/proc-macro/auxiliary/dollar-crate-external.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
360 B
Rust
Raw Normal View History

pub type S = u8;
#[macro_export]
macro_rules! external {
() => {
print_bang! {
struct M($crate::S);
}
#[print_attr]
struct A($crate::S);
#[derive(Print)]
struct D($crate::S);
};
}
#[macro_export]
macro_rules! issue_62325 { () => {
#[print_attr]
struct B(identity!($crate::S));
}}