]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/dollar-crate-issue-62325.rs
b7b152e669213beea31d60755375f2ec85034bde
[rust.git] / src / test / ui / proc-macro / dollar-crate-issue-62325.rs
1 // check-pass
2 // edition:2018
3 // aux-build:test-macros.rs
4 // aux-build:dollar-crate-external.rs
5
6 // Anonymize unstable non-dummy spans while still showing dummy spans `0..0`.
7 // normalize-stdout-test "bytes\([^0]\w*\.\.(\w+)\)" -> "bytes(LO..$1)"
8 // normalize-stdout-test "bytes\((\w+)\.\.[^0]\w*\)" -> "bytes($1..HI)"
9
10 #![feature(proc_macro_hygiene)]
11
12 #[macro_use]
13 extern crate test_macros;
14 extern crate dollar_crate_external;
15
16 type S = u8;
17
18 macro_rules! m { () => {
19     #[print_attr]
20     struct A(identity!($crate::S));
21 }}
22
23 m!();
24
25 dollar_crate_external::issue_62325!();
26
27 fn main() {}