]> git.lizzy.rs Git - rust.git/blob - tests/ui/semicolon_if_nothing_returned.stderr
Auto merge of #7047 - camsteffen:lang-ctor, r=flip1995
[rust.git] / 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:8: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:12: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:17:5
17    |
18 LL |     y = x + 1
19    |     ^^^^^^^^^ help: add a `;` here: `y = x + 1;`
20
21 error: aborting due to 3 previous errors
22