Skip to content

Commit 6889c08

Browse files
committed
upate tests
1 parent 9b4b2d7 commit 6889c08

File tree

7 files changed

+7
-25
lines changed

7 files changed

+7
-25
lines changed

src/librustc_typeck/diagnostics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4368,6 +4368,7 @@ i_am_a_function();
43684368
"##,
43694369

43704370
E0619: r##"
4371+
#### Note: this error code is no longer emitted by the compiler.
43714372
The type-checker needed to know the type of an expression, but that type had not
43724373
yet been inferred.
43734374

src/test/compile-fail/E0619.rs

-19
This file was deleted.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
fn main() {
1212
return
1313
{ return () }
14-
//~^ ERROR the type of this value must be known in this context
14+
//~^ ERROR type annotations needed [E0282]
1515
()
1616
;
1717
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
fn main() {
12-
let x = panic!();
13-
x.clone(); //~ ERROR the type of this value must be known in this context
12+
let x = panic!(); //~ ERROR type annotations needed [E0282]
13+
x.clone();
1414
}

src/test/compile-fail/match-vec-mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ fn main() {
4343
fn another_fn_to_avoid_suppression() {
4444
match Default::default()
4545
{
46-
[] => {} //~ ERROR the type of this value
46+
[] => {} //~ ERROR type annotations needed [E0282]
4747
};
4848
}

src/test/compile-fail/pat-tuple-bad-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
let x;
1313

1414
match x {
15-
(..) => {} //~ ERROR the type of this value must be known in this context
15+
(..) => {} //~ ERROR type annotations needed [E0282]
1616
_ => {}
1717
}
1818

src/test/compile-fail/unboxed-closures-failed-recursive-fn-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn a() {
2424
match closure0.take() {
2525
Some(c) => {
2626
return c();
27-
//~^ ERROR the type of this value must be known in this context
27+
//~^ ERROR type annotations needed [E0282]
2828
}
2929
None => { }
3030
}

0 commit comments

Comments
 (0)