summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/let_unit.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/let_unit.stderr')
-rw-r--r--src/tools/clippy/tests/ui/let_unit.stderr21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/tools/clippy/tests/ui/let_unit.stderr b/src/tools/clippy/tests/ui/let_unit.stderr
index 49da74ca7..de106f50e 100644
--- a/src/tools/clippy/tests/ui/let_unit.stderr
+++ b/src/tools/clippy/tests/ui/let_unit.stderr
@@ -1,19 +1,20 @@
error: this let-binding has unit value
- --> $DIR/let_unit.rs:14:5
+ --> $DIR/let_unit.rs:12:5
|
LL | let _x = println!("x");
| ^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `println!("x");`
|
= note: `-D clippy::let-unit-value` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::let_unit_value)]`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:18:9
+ --> $DIR/let_unit.rs:16:9
|
LL | let _a = ();
| ^^^^^^^^^^^^ help: omit the `let` binding: `();`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:53:5
+ --> $DIR/let_unit.rs:51:5
|
LL | / let _ = v
LL | | .into_iter()
@@ -36,7 +37,7 @@ LL + .unwrap();
|
error: this let-binding has unit value
- --> $DIR/let_unit.rs:80:5
+ --> $DIR/let_unit.rs:78:5
|
LL | let x: () = f(); // Lint.
| ^^^^-^^^^^^^^^^^
@@ -44,7 +45,7 @@ LL | let x: () = f(); // Lint.
| help: use a wild (`_`) binding: `_`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:83:5
+ --> $DIR/let_unit.rs:81:5
|
LL | let x: () = f2(0i32); // Lint.
| ^^^^-^^^^^^^^^^^^^^^^
@@ -52,19 +53,19 @@ LL | let x: () = f2(0i32); // Lint.
| help: use a wild (`_`) binding: `_`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:85:5
+ --> $DIR/let_unit.rs:83:5
|
LL | let _: () = f3(()); // Lint
| ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:86:5
+ --> $DIR/let_unit.rs:84:5
|
LL | let x: () = f3(()); // Lint
| ^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `f3(());`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:102:5
+ --> $DIR/let_unit.rs:100:5
|
LL | let x: () = if true { f() } else { f2(0) }; // Lint
| ^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -72,7 +73,7 @@ LL | let x: () = if true { f() } else { f2(0) }; // Lint
| help: use a wild (`_`) binding: `_`
error: this let-binding has unit value
- --> $DIR/let_unit.rs:113:5
+ --> $DIR/let_unit.rs:111:5
|
LL | / let _: () = match Some(0) {
LL | | None => f2(1),
@@ -93,7 +94,7 @@ LL + };
|
error: this let-binding has unit value
- --> $DIR/let_unit.rs:160:13
+ --> $DIR/let_unit.rs:158:13
|
LL | let _: () = z;
| ^^^^^^^^^^^^^^ help: omit the `let` binding: `z;`