Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
ui
/
impl-not-adjacent-to-type.rs
blob: 97caf908387784e094af4d65edd355a97ac9eb25 [
file
] [
log
] [
blame
]
// run-pass
mod
foo
{
pub
struct
Point
{
pub
x
:
i32
,
pub
y
:
i32
,
}
}
impl
foo
::
Point
{
fn
x
(&
self
)
->
i32
{
self
.
x
}
}
fn
main
()
{
assert_eq
!((
foo
::
Point
{
x
:
1
,
y
:
3
}).
x
(),
1
);
}