]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / 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() { }