fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB54 linesraw
1error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
2  --> $DIR/formatting.rs:16:6
3   |
4LL |     a =- 35;
5   |      ^^^^
6   |
7   = note: to remove this lint, use either `-=` or `= -`
8   = note: `-D clippy::suspicious-assignment-formatting` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::suspicious_assignment_formatting)]`
10
11error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
12  --> $DIR/formatting.rs:19:6
13   |
14LL |     a =* &191;
15   |      ^^^^
16   |
17   = note: to remove this lint, use either `*=` or `= *`
18
19error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
20  --> $DIR/formatting.rs:24:6
21   |
22LL |     b =! false;
23   |      ^^^^
24   |
25   = note: to remove this lint, use either `!=` or `= !`
26
27error: possibly missing a comma here
28  --> $DIR/formatting.rs:35:19
29   |
30LL |         -1, -2, -3 // <= no comma here
31   |                   ^
32   |
33   = note: to remove this lint, add a comma or write the expr in a single line
34   = note: `-D clippy::possible-missing-comma` implied by `-D warnings`
35   = help: to override `-D warnings` add `#[allow(clippy::possible_missing_comma)]`
36
37error: possibly missing a comma here
38  --> $DIR/formatting.rs:41:19
39   |
40LL |         -1, -2, -3 // <= no comma here
41   |                   ^
42   |
43   = note: to remove this lint, add a comma or write the expr in a single line
44
45error: possibly missing a comma here
46  --> $DIR/formatting.rs:80:11
47   |
48LL |         -1
49   |           ^
50   |
51   = note: to remove this lint, add a comma or write the expr in a single line
52
53error: aborting due to 6 previous errors
54