Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
invalid-self-argument
/
trait-fn.rs
blob: 5ccea589561cbdea1b02aae56fb3eaa448d5b65a [
file
] [
log
] [
blame
]
struct
Foo
{}
impl
Foo
{
fn
c
(
foo
:
u32
,
self
)
{}
//~^ ERROR unexpected `self` parameter in function
//~| NOTE must be the first parameter of an associated function
fn
good
(&
mut
self
,
foo
:
u32
)
{}
}
fn
main
()
{
}