Sign in
rust
/
rust-lang
/
rust
/
refs/heads/auto
/
.
/
tests
/
ui
/
methods
/
assc-func-issue-149038.rs
blob: 4fb4bd72fcc30f70f56f959dbbd8f6460e7d7c9a [
file
] [
log
] [
blame
] [
edit
]
struct
S
;
impl
S
{
fn
foo
()
{}
fn
bar
(&
self
)
{
self
.
foo
();
//~ ERROR no method named `foo` found for reference `&S` in the current scope
let
f
:
fn
()
=
self
.
foo
;
//~ ERROR no field `foo` on type `&S`
}
}
fn
main
()
{}