]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-11319.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / match / issue-11319.rs
1 fn main() {
2     match Some(10) {
3     //~^ NOTE `match` arms have incompatible types
4         Some(5) => false,
5         //~^ NOTE this is found to be of type `bool`
6         Some(2) => true,
7         //~^ NOTE this is found to be of type `bool`
8         None    => (),
9         //~^ ERROR `match` arms have incompatible types
10         //~| NOTE expected `bool`, found `()`
11         _       => true
12     }
13 }