Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
generics
/
generic-type.rs
blob: aa46db07eee8c27f9709814dbcc60744f8541c0c [
file
] [
log
] [
blame
]
// run-pass
struct
Pair
<
T
>
{
x
:
T
,
y
:
T
}
pub
fn
main
()
{
let
x
:
Pair
<
isize
>
=
Pair
{
x
:
10
,
y
:
12
};
assert_eq
!(
x
.
x
,
10
);
assert_eq
!(
x
.
y
,
12
);
}