eat CloseDelim
This commit is contained in:
parent
80c2101b20
commit
218e35efa1
2 changed files with 17 additions and 2 deletions
8
src/test/ui/bare-function-self.stderr
Normal file
8
src/test/ui/bare-function-self.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: unexpected `self` argument in bare function
|
||||
--> $DIR/bare-function-self.rs:12:11
|
||||
|
|
||||
LL | fn a(&self) { }
|
||||
| ^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue