rust/tests/ui/semicolon_outside_block.stderr

55 lines
1.2 KiB
Plaintext
Raw Normal View History

error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:42:5
|
LL | { unit_fn_block(); }
2022-11-15 12:22:00 -06:00
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::semicolon-outside-block` implied by `-D warnings`
2022-11-15 12:22:00 -06:00
help: put the `;` here
|
LL - { unit_fn_block(); }
LL + { unit_fn_block() };
|
error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:43:5
|
LL | unsafe { unit_fn_block(); }
2022-11-15 12:22:00 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: put the `;` here
|
LL - unsafe { unit_fn_block(); }
LL + 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 | | }
| |_____^
|
2022-11-15 12:22:00 -06:00
help: put the `;` here
|
2022-11-15 12:22:00 -06:00
LL ~ unit_fn_block()
LL ~ };
|
error: consider moving the `;` outside the block for consistent formatting
--> $DIR/semicolon_outside_block.rs:62:5
|
LL | { m!(()); }
2022-11-15 12:22:00 -06:00
| ^^^^^^^^^^^
|
help: put the `;` here
|
2022-11-16 07:30:53 -06:00
LL - { m!(()); }
LL + { m!(()) };
2022-11-15 12:22:00 -06:00
|
error: aborting due to 4 previous errors