Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
invalid-self-argument
/
bare-fn.rs
blob: 73d68e8b7a5ab340375bb570688a08f734313d92 [
file
] [
log
] [
blame
]
fn
b
(
foo
:
u32
,
&
mut
self
)
{
}
//~^ ERROR unexpected `self` parameter in function
//~| NOTE not valid as function parameter
//~| NOTE `self` is only valid as the first parameter of an associated function
fn
main
()
{
}