Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
);
}