File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7bbdf296e0a235fcd262615ffefb20e64a7ec48e
2
+ refs/heads/master: 9a77a17e3b51f2185fbbab2a4a301d6572834c72
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change 1
- // xfail-test After the closure syntax change this started failing with the wrong error message
2
- // error-pattern: not all control paths return
3
1
fn force ( f : fn ( ) -> int ) -> int { f ( ) }
4
- fn main ( ) { log ( error , force ( || { } ) ) ; }
2
+ fn main ( ) { log ( debug , force ( || { } ) ) ; } //~ ERROR mismatched types
Original file line number Diff line number Diff line change 1
- // xfail-test After the closure syntax change this started failing with the wrong error message
2
- fn main ( _s : ~[ str ] ) {
1
+ fn main ( ) {
3
2
let a: ~[ int ] = ~[ ] ;
4
- do vec:: each ( a) |_x| { //~ ERROR not all control paths return a value
5
- }
3
+ vec:: each ( a, fn @ ( _x : int ) -> bool { //~ ERROR not all control paths return a value
4
+ } ) ;
6
5
}
You can’t perform that action at this time.
0 commit comments