rust/tests/ui/macros/issue-8709.rs
2023-01-11 09:32:08 +00:00

15 lines
229 B
Rust

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