Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
autoref-autoderef
/
autoderef-and-borrow-method-receiver.rs
blob: d75a2ab8bdba4f582da393b90f4cd122ab743669 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
struct
Foo
{
x
:
isize
,
}
impl
Foo
{
pub
fn
f
(&
self
)
{}
}
fn
g
(
x
:
&
mut
Foo
)
{
x
.
f
();
}
pub
fn
main
()
{
}