summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/self-in-function-arg.stderr
blob: 47d8381b0b1dad4322fcc4935f9c73de6a0a001f (plain)
1
2
3
4
5
6
7
8
error: unexpected `self` parameter in function
  --> $DIR/self-in-function-arg.rs:1:15
   |
LL | fn foo(x:i32, self: i32) -> i32 { self }
   |               ^^^^ must be the first parameter of an associated function

error: aborting due to previous error