mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
bc9cdf1d64
Cleaning the empty lines for clarity.
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:8:28
|
|
|
|
|
8 | let a = { x = 1; 1 } + x;
|
|
| ^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/eval_order_dependence.rs:4:8
|
|
|
|
|
4 | #[deny(eval_order_dependence)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:8:15
|
|
|
|
|
8 | let a = { x = 1; 1 } + x;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:11:5
|
|
|
|
|
11 | x += { x = 20; 2 };
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:11:12
|
|
|
|
|
11 | x += { x = 20; 2 };
|
|
| ^^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:17:24
|
|
|
|
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:17:32
|
|
|
|
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:21:9
|
|
|
|
|
21 | x += { x = 20; 2 };
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:21:16
|
|
|
|
|
21 | x += { x = 20; 2 };
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|