]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11319.stderr
fix rebase fallout
[rust.git] / src / test / ui / issues / issue-11319.stderr
1 error[E0308]: match arms have incompatible types
2   --> $DIR/issue-11319.rs:2:5
3    |
4 LL | /     match Some(10) {
5 LL | |     //~^ ERROR match arms have incompatible types
6 LL | |     //~| expected type `bool`
7 LL | |     //~| found type `()`
8 ...  |
9 LL | |         None    => (),
10    | |                    -- match arm with an incompatible type
11 LL | |         _       => true
12 LL | |     }
13    | |_____^ expected bool, found ()
14    |
15    = note: expected type `bool`
16               found type `()`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.