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

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.