11error: unused `Result` that must be used
2- --> $DIR/must_use-result-unit-uninhabited.rs:80 :5
2+ --> $DIR/must_use-result-unit-uninhabited.rs:93 :5
33 |
44LL | result_unit_unit();
55 | ^^^^^^^^^^^^^^^^^^
@@ -16,7 +16,31 @@ LL | let _ = result_unit_unit();
1616 | +++++++
1717
1818error: unused `Result` that must be used
19- --> $DIR/must_use-result-unit-uninhabited.rs:84:5
19+ --> $DIR/must_use-result-unit-uninhabited.rs:96:5
20+ |
21+ LL | result_must_use_never();
22+ | ^^^^^^^^^^^^^^^^^^^^^^^
23+ |
24+ = note: this `Result` may be an `Err` variant, which should be handled
25+ help: use `let _ = ...` to ignore the resulting value
26+ |
27+ LL | let _ = result_must_use_never();
28+ | +++++++
29+
30+ error: unused `Result` that must be used
31+ --> $DIR/must_use-result-unit-uninhabited.rs:97:5
32+ |
33+ LL | result_struct_never();
34+ | ^^^^^^^^^^^^^^^^^^^^^
35+ |
36+ = note: this `Result` may be an `Err` variant, which should be handled
37+ help: use `let _ = ...` to ignore the resulting value
38+ |
39+ LL | let _ = result_struct_never();
40+ | +++++++
41+
42+ error: unused `Result` that must be used
43+ --> $DIR/must_use-result-unit-uninhabited.rs:99:5
2044 |
2145LL | result_unit_myuninhabited_nonexhaustive();
2246 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +52,7 @@ LL | let _ = result_unit_myuninhabited_nonexhaustive();
2852 | +++++++
2953
3054error: unused `Result` that must be used
31- --> $DIR/must_use-result-unit-uninhabited.rs:86 :5
55+ --> $DIR/must_use-result-unit-uninhabited.rs:101 :5
3256 |
3357LL | result_unit_assoctype(S2);
3458 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +64,7 @@ LL | let _ = result_unit_assoctype(S2);
4064 | +++++++
4165
4266error: unused `Result` that must be used
43- --> $DIR/must_use-result-unit-uninhabited.rs:88 :5
67+ --> $DIR/must_use-result-unit-uninhabited.rs:103 :5
4468 |
4569LL | S2.method_use_assoc_type();
4670 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -52,7 +76,7 @@ LL | let _ = S2.method_use_assoc_type();
5276 | +++++++
5377
5478error: unused `ControlFlow` that must be used
55- --> $DIR/must_use-result-unit-uninhabited.rs:90 :5
79+ --> $DIR/must_use-result-unit-uninhabited.rs:105 :5
5680 |
5781LL | controlflow_unit();
5882 | ^^^^^^^^^^^^^^^^^^
@@ -63,7 +87,7 @@ LL | let _ = controlflow_unit();
6387 | +++++++
6488
6589error: unused `Result` that must be used
66- --> $DIR/must_use-result-unit-uninhabited.rs:99 :9
90+ --> $DIR/must_use-result-unit-uninhabited.rs:114 :9
6791 |
6892LL | self.generate();
6993 | ^^^^^^^^^^^^^^^
@@ -74,5 +98,5 @@ help: use `let _ = ...` to ignore the resulting value
7498LL | let _ = self.generate();
7599 | +++++++
76100
77- error: aborting due to 6 previous errors
101+ error: aborting due to 8 previous errors
78102
0 commit comments