Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
tydesc-name.rs
blob: c432e5b54810c628225397ad2d868637ab6a4449 [
file
] [
log
] [
blame
]
// 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>"
);
}