Skip to content

Commit 83f5a96

Browse files
committed
fix compile-fail tests
1 parent 22c0cbf commit 83f5a96

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/test/compile-fail/issue-25439.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ fn fix<F>(f: F) -> i32 where F: Fn(Helper<F>, i32) -> i32 {
1515
}
1616

1717
fn main() {
18-
fix(|_, x| x); //~ ERROR mismatched types
18+
fix(|_, x| x); //~ ERROR closure/generator type that references itself [E0644]
1919
}

src/test/compile-fail/occurs-check-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ fn main() {
1616
g = f;
1717
f = box g;
1818
//~^ ERROR mismatched types
19-
//~| expected type `_`
20-
//~| found type `std::boxed::Box<_>`
2119
//~| cyclic type of infinite size
2220
}

src/test/compile-fail/occurs-check.rs

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ fn main() {
1414
let f;
1515
f = box f;
1616
//~^ ERROR mismatched types
17-
//~| expected type `_`
18-
//~| found type `std::boxed::Box<_>`
1917
//~| cyclic type of infinite size
2018
}

0 commit comments

Comments
 (0)