blob: c432e5b54810c628225397ad2d868637ab6a4449 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// run-pass
#![allow(dead_code)]
use std::any::type_name;
struct Foo<T> {
x: T
}
pub fn main() {
assert_eq!(type_name::<isize>(), "isize");
assert_eq!(type_name::<Foo<usize>>(), "tydesc_name::Foo<usize>");
}
|