11error: non-binding let on a result of a `#[must_use]` function
2- --> $DIR/let_underscore .rs:66:5
2+ --> $DIR/let_underscore_must_use .rs:66:5
33 |
44LL | let _ = f();
55 | ^^^^^^^^^^^^
@@ -8,87 +8,87 @@ LL | let _ = f();
88 = help: consider explicitly using function result
99
1010error: non-binding let on an expression with `#[must_use]` type
11- --> $DIR/let_underscore .rs:67:5
11+ --> $DIR/let_underscore_must_use .rs:67:5
1212 |
1313LL | let _ = g();
1414 | ^^^^^^^^^^^^
1515 |
1616 = help: consider explicitly using expression value
1717
1818error: non-binding let on a result of a `#[must_use]` function
19- --> $DIR/let_underscore .rs:69:5
19+ --> $DIR/let_underscore_must_use .rs:69:5
2020 |
2121LL | let _ = l(0_u32);
2222 | ^^^^^^^^^^^^^^^^^
2323 |
2424 = help: consider explicitly using function result
2525
2626error: non-binding let on a result of a `#[must_use]` function
27- --> $DIR/let_underscore .rs:73:5
27+ --> $DIR/let_underscore_must_use .rs:73:5
2828 |
2929LL | let _ = s.f();
3030 | ^^^^^^^^^^^^^^
3131 |
3232 = help: consider explicitly using function result
3333
3434error: non-binding let on an expression with `#[must_use]` type
35- --> $DIR/let_underscore .rs:74:5
35+ --> $DIR/let_underscore_must_use .rs:74:5
3636 |
3737LL | let _ = s.g();
3838 | ^^^^^^^^^^^^^^
3939 |
4040 = help: consider explicitly using expression value
4141
4242error: non-binding let on a result of a `#[must_use]` function
43- --> $DIR/let_underscore .rs:77:5
43+ --> $DIR/let_underscore_must_use .rs:77:5
4444 |
4545LL | let _ = S::h();
4646 | ^^^^^^^^^^^^^^^
4747 |
4848 = help: consider explicitly using function result
4949
5050error: non-binding let on an expression with `#[must_use]` type
51- --> $DIR/let_underscore .rs:78:5
51+ --> $DIR/let_underscore_must_use .rs:78:5
5252 |
5353LL | let _ = S::p();
5454 | ^^^^^^^^^^^^^^^
5555 |
5656 = help: consider explicitly using expression value
5757
5858error: non-binding let on a result of a `#[must_use]` function
59- --> $DIR/let_underscore .rs:80:5
59+ --> $DIR/let_underscore_must_use .rs:80:5
6060 |
6161LL | let _ = S::a();
6262 | ^^^^^^^^^^^^^^^
6363 |
6464 = help: consider explicitly using function result
6565
6666error: non-binding let on an expression with `#[must_use]` type
67- --> $DIR/let_underscore .rs:82:5
67+ --> $DIR/let_underscore_must_use .rs:82:5
6868 |
6969LL | let _ = if true { Ok(()) } else { Err(()) };
7070 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7171 |
7272 = help: consider explicitly using expression value
7373
7474error: non-binding let on a result of a `#[must_use]` function
75- --> $DIR/let_underscore .rs:86:5
75+ --> $DIR/let_underscore_must_use .rs:86:5
7676 |
7777LL | let _ = a.is_ok();
7878 | ^^^^^^^^^^^^^^^^^^
7979 |
8080 = help: consider explicitly using function result
8181
8282error: non-binding let on an expression with `#[must_use]` type
83- --> $DIR/let_underscore .rs:88:5
83+ --> $DIR/let_underscore_must_use .rs:88:5
8484 |
8585LL | let _ = a.map(|_| ());
8686 | ^^^^^^^^^^^^^^^^^^^^^^
8787 |
8888 = help: consider explicitly using expression value
8989
9090error: non-binding let on an expression with `#[must_use]` type
91- --> $DIR/let_underscore .rs:90:5
91+ --> $DIR/let_underscore_must_use .rs:90:5
9292 |
9393LL | let _ = a;
9494 | ^^^^^^^^^^
0 commit comments