mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
230 B
Rust
14 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");
|
|
}
|