summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-8709.rs
blob: ea7525d4477de99b71f3ee599f72a8cff6a4da50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass

macro_rules! sty {
    ($t:ty) => (stringify!($t))
}

macro_rules! spath {
    ($t:path) => (stringify!($t))
}

fn main() {
    assert_eq!(sty!(isize), "isize");
    assert_eq!(spath!(std::option), "std::option");
}