]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tydesc-name.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / tydesc-name.rs
1 // run-pass
2
3 #![allow(dead_code)]
4
5 use std::any::type_name;
6
7 struct Foo<T> {
8     x: T
9 }
10
11 pub fn main() {
12     assert_eq!(type_name::<isize>(), "isize");
13     assert_eq!(type_name::<Foo<usize>>(), "tydesc_name::Foo<usize>");
14 }