Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-types
/
associated-types-basic.rs
blob: 911073a6a32c84d6007f2b164e50a49131fce45a [
file
] [
log
] [
blame
]
//@ run-pass
trait
Foo
{
type
T
;
}
impl
Foo
for
i32
{
type
T
=
isize
;
}
fn
main
()
{
let
x
:
<
i32
as
Foo
>::
T
=
22
;
let
y
:
isize
=
44
;
assert_eq
!(
x
*
2
,
y
);
}