1
Fork 0

fix tidy (remove whitespace)

This commit is contained in:
Axary 2018-11-16 19:35:13 +01:00
parent fe23ffbda0
commit 2be930bd03
4 changed files with 25 additions and 1 deletions

View 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

View 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

View 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