rust/tests/ui/macros/issue-8709.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
230 B
Rust
Raw Normal View History

//@ 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");
}