summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-self-argument/bare-fn-start.stderr
blob: 37753e61f582a790d42af1456412d34b8e3e851f (plain)
1
2
3
4
5
6
7
8
9
10
error: `self` parameter is only allowed in associated functions
  --> $DIR/bare-fn-start.rs:1:6
   |
LL | fn a(&self) { }
   |      ^^^^^ not semantically valid as function parameter
   |
   = note: associated functions are those in `impl` or `trait` definitions

error: aborting due to previous error