|
| 1 | +error: non-binding let on a result of a #[must_use] function |
| 2 | + --> $DIR/let_underscore.rs:59:5 |
| 3 | + | |
| 4 | +LL | let _ = f(); |
| 5 | + | ^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::let-underscore-must-use` implied by `-D warnings` |
| 8 | + = help: consider explicitly using function result |
| 9 | + |
| 10 | +error: non-binding let on an expression with #[must_use] type |
| 11 | + --> $DIR/let_underscore.rs:60:5 |
| 12 | + | |
| 13 | +LL | let _ = g(); |
| 14 | + | ^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = help: consider explicitly using expression value |
| 17 | + |
| 18 | +error: non-binding let on a result of a #[must_use] function |
| 19 | + --> $DIR/let_underscore.rs:62:5 |
| 20 | + | |
| 21 | +LL | let _ = l(0_u32); |
| 22 | + | ^^^^^^^^^^^^^^^^^ |
| 23 | + | |
| 24 | + = help: consider explicitly using function result |
| 25 | + |
| 26 | +error: non-binding let on a result of a #[must_use] function |
| 27 | + --> $DIR/let_underscore.rs:66:5 |
| 28 | + | |
| 29 | +LL | let _ = s.f(); |
| 30 | + | ^^^^^^^^^^^^^^ |
| 31 | + | |
| 32 | + = help: consider explicitly using function result |
| 33 | + |
| 34 | +error: non-binding let on an expression with #[must_use] type |
| 35 | + --> $DIR/let_underscore.rs:67:5 |
| 36 | + | |
| 37 | +LL | let _ = s.g(); |
| 38 | + | ^^^^^^^^^^^^^^ |
| 39 | + | |
| 40 | + = help: consider explicitly using expression value |
| 41 | + |
| 42 | +error: non-binding let on a result of a #[must_use] function |
| 43 | + --> $DIR/let_underscore.rs:70:5 |
| 44 | + | |
| 45 | +LL | let _ = S::h(); |
| 46 | + | ^^^^^^^^^^^^^^^ |
| 47 | + | |
| 48 | + = help: consider explicitly using function result |
| 49 | + |
| 50 | +error: non-binding let on an expression with #[must_use] type |
| 51 | + --> $DIR/let_underscore.rs:71:5 |
| 52 | + | |
| 53 | +LL | let _ = S::p(); |
| 54 | + | ^^^^^^^^^^^^^^^ |
| 55 | + | |
| 56 | + = help: consider explicitly using expression value |
| 57 | + |
| 58 | +error: non-binding let on a result of a #[must_use] function |
| 59 | + --> $DIR/let_underscore.rs:73:5 |
| 60 | + | |
| 61 | +LL | let _ = S::a(); |
| 62 | + | ^^^^^^^^^^^^^^^ |
| 63 | + | |
| 64 | + = help: consider explicitly using function result |
| 65 | + |
| 66 | +error: non-binding let on an expression with #[must_use] type |
| 67 | + --> $DIR/let_underscore.rs:75:5 |
| 68 | + | |
| 69 | +LL | let _ = if true { Ok(()) } else { Err(()) }; |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 71 | + | |
| 72 | + = help: consider explicitly using expression value |
| 73 | + |
| 74 | +error: non-binding let on a result of a #[must_use] function |
| 75 | + --> $DIR/let_underscore.rs:79:5 |
| 76 | + | |
| 77 | +LL | let _ = a.is_ok(); |
| 78 | + | ^^^^^^^^^^^^^^^^^^ |
| 79 | + | |
| 80 | + = help: consider explicitly using function result |
| 81 | + |
| 82 | +error: non-binding let on an expression with #[must_use] type |
| 83 | + --> $DIR/let_underscore.rs:81:5 |
| 84 | + | |
| 85 | +LL | let _ = a.map(|_| ()); |
| 86 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 87 | + | |
| 88 | + = help: consider explicitly using expression value |
| 89 | + |
| 90 | +error: non-binding let on an expression with #[must_use] type |
| 91 | + --> $DIR/let_underscore.rs:83:5 |
| 92 | + | |
| 93 | +LL | let _ = a; |
| 94 | + | ^^^^^^^^^^ |
| 95 | + | |
| 96 | + = help: consider explicitly using expression value |
| 97 | + |
| 98 | +error: aborting due to 12 previous errors |
| 99 | + |
0 commit comments