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 | ^^^^^^^^^^^^^^^^^^
@@ -15,8 +15,14 @@ help: use `let _ = ...` to ignore the resulting value
1515LL | let _ = result_unit_unit();
1616 | +++++++
1717
18+ error: unused `MustUse` in a `Result` with an uninhabited error that must be used
19+ --> $DIR/must_use-result-unit-uninhabited.rs:96:5
20+ |
21+ LL | result_must_use_never();
22+ | ^^^^^^^^^^^^^^^^^^^^^^^
23+
1824error: unused `Result` that must be used
19- --> $DIR/must_use-result-unit-uninhabited.rs:84 :5
25+ --> $DIR/must_use-result-unit-uninhabited.rs:99 :5
2026 |
2127LL | result_unit_myuninhabited_nonexhaustive();
2228 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +34,7 @@ LL | let _ = result_unit_myuninhabited_nonexhaustive();
2834 | +++++++
2935
3036error: unused `Result` that must be used
31- --> $DIR/must_use-result-unit-uninhabited.rs:86 :5
37+ --> $DIR/must_use-result-unit-uninhabited.rs:101 :5
3238 |
3339LL | result_unit_assoctype(S2);
3440 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +46,7 @@ LL | let _ = result_unit_assoctype(S2);
4046 | +++++++
4147
4248error: unused `Result` that must be used
43- --> $DIR/must_use-result-unit-uninhabited.rs:88 :5
49+ --> $DIR/must_use-result-unit-uninhabited.rs:103 :5
4450 |
4551LL | S2.method_use_assoc_type();
4652 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -52,7 +58,7 @@ LL | let _ = S2.method_use_assoc_type();
5258 | +++++++
5359
5460error: unused `ControlFlow` that must be used
55- --> $DIR/must_use-result-unit-uninhabited.rs:90 :5
61+ --> $DIR/must_use-result-unit-uninhabited.rs:105 :5
5662 |
5763LL | controlflow_unit();
5864 | ^^^^^^^^^^^^^^^^^^
@@ -63,7 +69,7 @@ LL | let _ = controlflow_unit();
6369 | +++++++
6470
6571error: unused `Result` that must be used
66- --> $DIR/must_use-result-unit-uninhabited.rs:99 :9
72+ --> $DIR/must_use-result-unit-uninhabited.rs:114 :9
6773 |
6874LL | self.generate();
6975 | ^^^^^^^^^^^^^^^
@@ -74,5 +80,5 @@ help: use `let _ = ...` to ignore the resulting value
7480LL | let _ = self.generate();
7581 | +++++++
7682
77- error: aborting due to 6 previous errors
83+ error: aborting due to 7 previous errors
7884
0 commit comments