]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/semicolon_if_nothing_returned.stderr
Auto merge of #97944 - nikic:freebsd-update, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / semicolon_if_nothing_returned.stderr
1 error: consider adding a `;` to the last statement for consistent formatting
2   --> $DIR/semicolon_if_nothing_returned.rs:10:5
3    |
4 LL |     println!("Hello")
5    |     ^^^^^^^^^^^^^^^^^ help: add a `;` here: `println!("Hello");`
6    |
7    = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D warnings`
8
9 error: consider adding a `;` to the last statement for consistent formatting
10   --> $DIR/semicolon_if_nothing_returned.rs:14:5
11    |
12 LL |     get_unit()
13    |     ^^^^^^^^^^ help: add a `;` here: `get_unit();`
14
15 error: consider adding a `;` to the last statement for consistent formatting
16   --> $DIR/semicolon_if_nothing_returned.rs:19:5
17    |
18 LL |     y = x + 1
19    |     ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
20
21 error: consider adding a `;` to the last statement for consistent formatting
22   --> $DIR/semicolon_if_nothing_returned.rs:25:9
23    |
24 LL |         hello()
25    |         ^^^^^^^ help: add a `;` here: `hello();`
26
27 error: consider adding a `;` to the last statement for consistent formatting
28   --> $DIR/semicolon_if_nothing_returned.rs:36:9
29    |
30 LL |         ptr::drop_in_place(s.as_mut_ptr())
31    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `ptr::drop_in_place(s.as_mut_ptr());`
32
33 error: aborting due to 5 previous errors
34