fix tidy (remove whitespace)
This commit is contained in:
parent
fe23ffbda0
commit
2be930bd03
4 changed files with 25 additions and 1 deletions
8
src/test/ui/invalid-self-argument/bare-fn-start.stderr
Normal file
8
src/test/ui/invalid-self-argument/bare-fn-start.stderr
Normal file
|
@ -0,0 +1,8 @@
|
|||
error: unexpected `self` argument in function
|
||||
--> $DIR/bare-fn-start.rs:1:7
|
||||
|
|
||||
LL | fn a(&self) { }
|
||||
| ^^^^ `self` is only valid as the first argument of a trait function
|
||||
|
||||
error: aborting due to previous error
|
||||
|
8
src/test/ui/invalid-self-argument/bare-fn.stderr
Normal file
8
src/test/ui/invalid-self-argument/bare-fn.stderr
Normal file
|
@ -0,0 +1,8 @@
|
|||
error: unexpected `self` argument in function
|
||||
--> $DIR/bare-fn.rs:1:21
|
||||
|
|
||||
LL | fn b(foo: u32, &mut self) { }
|
||||
| ^^^^ `self` is only valid as the first argument of a trait function
|
||||
|
||||
error: aborting due to previous error
|
||||
|
8
src/test/ui/invalid-self-argument/trait-fn.stderr
Normal file
8
src/test/ui/invalid-self-argument/trait-fn.stderr
Normal file
|
@ -0,0 +1,8 @@
|
|||
error: unexpected `self` argument in function
|
||||
--> $DIR/trait-fn.rs:4:20
|
||||
|
|
||||
LL | fn c(foo: u32, self) {}
|
||||
| ^^^^ `self` is only valid as the first argument of a trait function
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue