Skip to content

Commit ebf1e4f

Browse files
committed
Three random test cases that seem to produce more errors now. I've
not dug deeply into what is going on here, although the errors ARE somewhat surprising.
1 parent a04ce71 commit ebf1e4f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
fn main() {
1212
return
13-
{ return () } //~ ERROR the type of this value must be known in this context
13+
{ return () }
14+
//~^ ERROR the type of this value must be known in this context
15+
//~| ERROR this function takes 1 parameter
16+
//~| ERROR mismatched types
1417
()
1518
;
1619
}

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ type Transducer<'t, R, T, U> = |Step<'t, R, U>|: 't -> Step<'t, R, T>;
1313

1414
fn mapping<'f, R, T, U>(f: |T|: 'f -> U) -> &'f Transducer<'f, R, T, U> {
1515
|step| |r, x|
16-
step(r, f(x)) //~ ERROR the type of this value must be known in this context
16+
step(r, f(x))
17+
//~^ ERROR the type of this value must be known in this context
18+
//~| ERROR this function takes 1 parameter but 2 parameters were supplied
1719
}
1820

1921
fn main() {}

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

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
fn main() {
1818
(return)((),());
1919
//~^ ERROR the type of this value must be known
20+
//~| ERROR this function takes 1 parameter
2021
}

0 commit comments

Comments
 (0)