Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
associated-types
/
associated-types-basic.rs
blob: b7f6721ec4f36fdfd5ed7d08175b5921f6654f28 [
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
);
}