mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
23 lines
360 B
Rust
23 lines
360 B
Rust
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));
|
|
}}
|