Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
auxiliary
/
issue-3979-traits.rs
blob: 5d03a0e9e993134aab66c3e51635d39f97a6294c [
file
] [
log
] [
blame
]
#![
crate_name
=
"issue_3979_traits"
]
#![
crate_type
=
"lib"
]
pub
trait
Positioned
{
fn
SetX
(&
mut
self
,
_
:
isize
);
fn
X
(&
self
)
->
isize
;
}
pub
trait
Movable
:
Positioned
{
fn
translate
(&
mut
self
,
dx
:
isize
)
{
let
x
=
self
.
X
()
+
dx
;
self
.
SetX
(
x
);
}
}