clean tests/ui/neg_multiply.rs
Cleaning the empty lines for clarity.
This commit is contained in:
parent
cd55b87874
commit
747a20153c
@ -29,10 +29,8 @@ fn main() {
|
||||
|
||||
x * -1;
|
||||
|
||||
|
||||
-1 * x;
|
||||
|
||||
|
||||
-1 * -1; // should be ok
|
||||
|
||||
X * -1; // should be ok
|
||||
|
@ -11,9 +11,9 @@ note: lint level defined here
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: Negation by multiplying with -1
|
||||
--> $DIR/neg_multiply.rs:33:5
|
||||
--> $DIR/neg_multiply.rs:32:5
|
||||
|
|
||||
33 | -1 * x;
|
||||
32 | -1 * x;
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
Loading…
Reference in New Issue
Block a user