]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_unit.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / let_unit.stderr
1 error: this let-binding has unit value
2   --> $DIR/let_unit.rs:14:5
3    |
4 LL |     let _x = println!("x");
5    |     ^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `println!("x");`
6    |
7    = note: `-D clippy::let-unit-value` implied by `-D warnings`
8
9 error: this let-binding has unit value
10   --> $DIR/let_unit.rs:18:9
11    |
12 LL |         let _a = ();
13    |         ^^^^^^^^^^^^ help: omit the `let` binding: `();`
14
15 error: this let-binding has unit value
16   --> $DIR/let_unit.rs:53:5
17    |
18 LL | /     let _ = v
19 LL | |         .into_iter()
20 LL | |         .map(|i| i * 2)
21 LL | |         .filter(|i| i % 2 == 0)
22 LL | |         .map(|_| ())
23 LL | |         .next()
24 LL | |         .unwrap();
25    | |__________________^
26    |
27 help: omit the `let` binding
28    |
29 LL |     v
30 LL |         .into_iter()
31 LL |         .map(|i| i * 2)
32 LL |         .filter(|i| i % 2 == 0)
33 LL |         .map(|_| ())
34 LL |         .next()
35  ...
36
37 error: aborting due to 3 previous errors
38