File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
branches/snap-stage3/src/test Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: be8a08b2afac770c0b932619419bd08cd0550d85
4
+ refs/heads/snap-stage3: b8710de5fffdc45c19ccc27ad8ed98c1ee51c025
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change
1
+ fn foo ( a : option < uint > , b : option < uint > ) {
2
+ alt ( a, b) { //! ERROR: non-exhaustive patterns: none not covered
3
+ ( some ( a) , some ( b) ) if a == b { }
4
+ ( some ( _) , none) |
5
+ ( none, some ( _) ) { }
6
+ }
7
+ }
8
+
9
+ fn main ( ) {
10
+ foo ( none, none) ;
11
+ }
Original file line number Diff line number Diff line change
1
+ // xfail-test
2
+ fn find < T > ( _f : fn ( @T ) -> bool , _v : [ @T ] ) { }
3
+
4
+ fn main ( ) {
5
+ let x = 10 , arr = [ ] ;
6
+ find ( { |f| f. id == x} , arr) ;
7
+ arr += [ { id: 20 } ] ; // This assigns a type to arr
8
+ }
You can’t perform that action at this time.
0 commit comments