summary refs log tree commit diff
path: root/src/test/ui/issue-11319.stderr
blob: 20103d389ffb09ea9d663528f479cbbceda7cdb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: match arms have incompatible types
  --> $DIR/issue-11319.rs:12:5
   |
12 | /     match Some(10) {
13 | |     //~^ ERROR match arms have incompatible types
14 | |     //~| expected type `bool`
15 | |     //~| found type `()`
...  |
19 | |         None    => (),
   | |                    -- match arm with an incompatible type
20 | |         _       => true
21 | |     }
   | |_____^ expected bool, found ()
   |
   = note: expected type `bool`
              found type `()`

error: aborting due to previous error