rust/tests/ui/semicolon_outside_block.stderr
2022-11-25 17:10:10 +01:00

40 lines
1.2 KiB
Plaintext

error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:42:5
|
LL | { unit_fn_block(); }
| ^^^^^^^^^^^^^^^^^^^^ help: put the `;` outside the block: `{ unit_fn_block() };`
|
= note: `-D clippy::semicolon-outside-block` implied by `-D warnings`
error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:43:5
|
LL | unsafe { unit_fn_block(); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: put the `;` outside the block: `unsafe { unit_fn_block() };`
error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:52:5
|
LL | / {
LL | | unit_fn_block();
LL | | unit_fn_block();
LL | | }
| |_____^
|
help: put the `;` outside the block
|
LL ~ {
LL + unit_fn_block();
LL + unit_fn_block()
LL + };
|
error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:62:5
|
LL | { m!(()); }
| ^^^^^^^^^^^ help: put the `;` outside the block: `{ m!(()) };`
error: aborting due to 4 previous errors