]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr
Make `output_filenames` a real query
[rust.git] / tests / ui / type / type-check / issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr
1 error[E0308]: `match` arms have incompatible types
2   --> $DIR/issue-67273-assignment-match-prior-arm-bool-expected-unit.rs:22:14
3    |
4 LL | /     match i {
5 LL | |         // Add `bool` to the overall `coercion`.
6 LL | |         0 => true,
7    | |              ---- this is found to be of type `bool`
8 LL | |
9 LL | |         // Necessary to cause the ICE:
10 LL | |         1 => true,
11    | |              ---- this is found to be of type `bool`
12 ...  |
13 LL | |         2 => i = 1,
14    | |              ^^^^^ expected `bool`, found `()`
15 ...  |
16 LL | |         _ => (),
17 LL | |     }
18    | |_____- `match` arms have incompatible types
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.