Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
error-codes
/
E0185.rs
blob: 45eb8b0f239bd1f560e402b28a93fe276e8fabe1 [
file
] [
log
] [
blame
]
trait
Foo
{
fn
foo
();
//~^ NOTE trait method declared without `&self`
}
struct
Bar
;
impl
Foo
for
Bar
{
fn
foo
(&
self
)
{}
//~^ ERROR E0185
//~| NOTE `&self` used in impl
}
fn
main
()
{
}