]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/issue-8709.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / macros / issue-8709.rs
1 // run-pass
2
3 macro_rules! sty {
4 ($t:ty) => (stringify!($t))
5 }
6
7 macro_rules! spath {
8 ($t:path) => (stringify!($t))
9 }
10
11 fn main() {
12 assert_eq!(sty!(isize), "isize");
13 assert_eq!(spath!(std::option), "std::option");
14 }