]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.rs
8c92b7bc7c4b0d4180c9295b85663661603fbb4b
[rust.git] / src / test / ui / invalid-self-argument / bare-fn-start.rs
1 fn a(&self) { }
2 //~^ ERROR `self` parameter only allowed in associated `fn`s
3 //~| NOTE not semantically valid as function parameter
4 //~| NOTE associated `fn`s are those in `impl` or `trait` definitions
5
6 fn main() { }