about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/semicolon_outside_block.stderr
blob: 18d6dc697f2e3e11717ee70c7a15512f1cb57a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:41:5
   |
LL |     { unit_fn_block(); }
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::semicolon-outside-block` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::semicolon_outside_block)]`
help: put the `;` here
   |
LL -     { unit_fn_block(); }
LL +     { unit_fn_block() };
   |

error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:43:5
   |
LL |     unsafe { unit_fn_block(); }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: put the `;` here
   |
LL -     unsafe { unit_fn_block(); }
LL +     unsafe { unit_fn_block() };
   |

error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:53:5
   |
LL | /     {
LL | |
LL | |         unit_fn_block();
LL | |         unit_fn_block();
LL | |     }
   | |_____^
   |
help: put the `;` here
   |
LL ~         unit_fn_block()
LL ~     };
   |

error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:64:5
   |
LL |     { m!(()); }
   |     ^^^^^^^^^^^
   |
help: put the `;` here
   |
LL -     { m!(()); }
LL +     { m!(()) };
   |

error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:87:5
   |
LL | /     unsafe {
LL | |
LL | |         std::arch::asm!("");
LL | |     }
   | |_____^
   |
help: put the `;` here
   |
LL ~         std::arch::asm!("")
LL ~     };
   |

error: consider moving the `;` outside the block for consistent formatting
  --> tests/ui/semicolon_outside_block.rs:92:5
   |
LL | /     {
LL | |
LL | |         line!();
LL | |     }
   | |_____^
   |
help: put the `;` here
   |
LL ~         line!()
LL ~     };
   |

error: aborting due to 6 previous errors