]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / invalid-self-argument / bare-fn-start.rs
1 fn a(&self) { }
2 //~^ ERROR unexpected `self` argument in function
3 //~| NOTE `self` is only valid as the first argument of an associated function
4
5 fn main() { }