File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: e6b9db08841c5d215c56790e35f951a99275001d
5
+ refs/heads/try: e4694ca51942248308c1d3e05d7c6df90539f994
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change
1
+ type an_int = int ;
2
+
3
+ fn cmp ( x : option < an_int > , y : option < int > ) -> bool {
4
+ x == y
5
+ }
6
+
7
+ fn main ( ) {
8
+ assert ! cmp( some( 3 ) , none) ;
9
+ assert ! cmp( some( 3 ) , some( 4 ) ) ;
10
+ assert cmp( some ( 3 ) , some ( 3 ) ) ;
11
+ assert cmp( none, none) ;
12
+ }
Original file line number Diff line number Diff line change 1
- //xfail-test
2
-
3
1
// Issue #2263.
4
2
5
3
// Should pass region checking.
You can’t perform that action at this time.
0 commit comments