mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
41 lines
994 B
Text
41 lines
994 B
Text
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:4:5
|
|
|
|
|
LL | a = b = c;
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::multi-assignments` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::multi_assignments)]`
|
|
|
|
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:7:5
|
|
|
|
|
LL | a = b = c = d;
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:7:9
|
|
|
|
|
LL | a = b = c = d;
|
|
| ^^^^^^^^^
|
|
|
|
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:10:5
|
|
|
|
|
LL | a = b = { c };
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:12:5
|
|
|
|
|
LL | a = { b = c };
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: assignments don't nest intuitively
|
|
--> tests/ui/multi_assignments.rs:14:5
|
|
|
|
|
LL | a = (b = c);
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|