mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:06:20 +00:00
15 lines
230 B
Rust
15 lines
230 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");
|
|
}
|