Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
methods
/
issue-3707.rs
blob: 0817c51ee4eabccd1fd7666e077590c66654c67f [
file
] [
log
] [
blame
] [
edit
]
struct
Obj
{
member
:
usize
}
impl
Obj
{
pub
fn
boom
()
->
bool
{
return
1
+
1
==
2
}
pub
fn
chirp
(&
self
)
{
self
.
boom
();
//~ ERROR no method named `boom` found
}
}
fn
main
()
{
let
o
=
Obj
{
member
:
0
};
o
.
chirp
();
1
+
1
;
}