]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11319.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-11319.rs
1 fn main() {
2     match Some(10) {
3     //~^ ERROR match arms have incompatible types
4     //~| expected type `bool`
5     //~| found type `()`
6     //~| expected bool, found ()
7         Some(5) => false,
8         Some(2) => true,
9         None    => (),
10         _       => true
11     }
12 }