]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/auxiliary/dollar-crate-external.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / proc-macro / auxiliary / dollar-crate-external.rs
1 pub type S = u8;
2
3 #[macro_export]
4 macro_rules! external {
5     () => {
6         print_bang! {
7             struct M($crate::S);
8         }
9
10         #[print_attr]
11         struct A($crate::S);
12
13         #[derive(Print)]
14         struct D($crate::S);
15     };
16 }
17
18 #[macro_export]
19 macro_rules! issue_62325 { () => {
20     #[print_attr]
21     struct B(identity!($crate::S));
22 }}