]> git.lizzy.rs Git - rust.git/blob - tests/ui/invalid-self-argument/bare-fn-start.rs
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / invalid-self-argument / bare-fn-start.rs
1 fn a(&self) { }
2 //~^ ERROR `self` parameter is only allowed in associated functions
3 //~| NOTE not semantically valid as function parameter
4 //~| NOTE associated functions are those in `impl` or `trait` definitions
5
6 fn main() { }