Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
autoref-autoderef
/
auto-ref.rs
blob: b77f9c34213535dd94d539f9c56432b9c98198d6 [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
{
x
:
isize
,
}
trait
Stuff
{
fn
printme
(&
self
);
}
impl
Stuff
for
Foo
{
fn
printme
(&
self
)
{
println
!(
"{}"
,
self
.
x
);
}
}
pub
fn
main
()
{
let
x
=
Foo
{
x
:
3
};
x
.
printme
();
}