mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
15 lines
229 B
Rust
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");
|
|
}
|