Sign in
fuchsia
/
third_party
/
rust
/
b55d8a3b4917698fd6d389f05afc423086f33d97
/
.
/
tests
/
ui
/
impl-not-adjacent-to-type.rs
blob: ccf59ed43932835620351864219df3b3d287d9f2 [
file
] [
log
] [
blame
]
//@ run-pass
mod
foo
{
pub
struct
Point
{
pub
x
:
i32
,
#[
allow
(
dead_code
)]
pub
y
:
i32
,
}
}
impl
foo
::
Point
{
fn
x
(&
self
)
->
i32
{
self
.
x
}
}
fn
main
()
{
assert_eq
!((
foo
::
Point
{
x
:
1
,
y
:
3
}).
x
(),
1
);
}