Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
invalid-self-argument
/
bare-fn-start.rs
blob: 7c580bc5a5deaa1d2ff46b6dece1c6b5e6cd1e43 [
file
] [
log
] [
blame
]
fn
a
(&
self
)
{
}
//~^ ERROR `self` parameter is only allowed in associated functions
//~| NOTE not semantically valid as function parameter
//~| NOTE associated functions are those in `impl` or `trait` definitions
fn
main
()
{
}