File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,7 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \
434
434
test/compile-fail/bad-recv.rs \
435
435
test/compile-fail/bad-send.rs \
436
436
test/compile-fail/infinite-vec-type-recursion.rs \
437
+ test/compile-fail/tail-non-call.rs \
437
438
test/compile-fail/writing-through-read-alias.rs
438
439
439
440
# Same strategy here for the time being: just list the ones that
@@ -555,6 +556,8 @@ TEST_XFAILS_RUSTC := $(filter-out \
555
556
multiline-comment-line-tracking.rs \
556
557
output-type-mismatch.rs \
557
558
rec-missing-fields.rs \
559
+ tail-non-call.rs \
560
+ tail-typeck.rs \
558
561
type-shadow.rs \
559
562
while-type-error.rs \
560
563
wrong-ret-type.rs \
Original file line number Diff line number Diff line change
1
+ // error-pattern: Non-call expression in tail call
2
+
3
+ fn f ( ) -> int {
4
+ auto x = 1 ;
5
+ be x;
6
+ }
7
+
8
+ fn main ( ) {
9
+ auto y = f ( ) ;
10
+ }
Original file line number Diff line number Diff line change
1
+ // error-pattern: mismatched types
2
+
3
+ fn f ( ) -> int {
4
+ be g( ) ;
5
+ }
6
+
7
+ fn g ( ) -> uint {
8
+ ret 0 u;
9
+ }
10
+
11
+ fn main ( ) {
12
+ auto y = f ( ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments