Skip to content

Commit 87e76e6

Browse files
committed
Update error expectations
1 parent 9fcb6a2 commit 87e76e6

12 files changed

+20
-20
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ pub fn let_<'var, VAR, F: for<'v: 'var> Fn(Expr<'v, VAR>) -> Expr<'v, VAR>>
2525

2626
fn main() {
2727
let ex = |x| {
28-
let_(add(x,x), |y| { //~ ERROR unable to infer enough type information about `_`
28+
let_(add(x,x), |y| { //~ ERROR unable to infer enough type information about `VAR`
2929
let_(add(x, x), |x|x)})};
3030
}

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

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

1111
fn main() { format!("{:?}", None); }
12-
//~^ ERROR unable to infer enough type information about `_` [E0282]
12+
//~^ ERROR unable to infer enough type information about `T` [E0282]

src/test/compile-fail/issue-6458-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
fn main() {
1212
// Unconstrained type:
1313
format!("{:?}", None);
14-
//~^ ERROR unable to infer enough type information about `_` [E0282]
14+
//~^ ERROR unable to infer enough type information about `T` [E0282]
1515
}

src/test/compile-fail/issue-6458-3.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::mem;
1212

1313
fn main() {
1414
mem::transmute(0);
15-
//~^ ERROR unable to infer enough type information about `_` [E0282]
16-
//~| NOTE cannot infer type for `_`
15+
//~^ ERROR unable to infer enough type information about `U` [E0282]
16+
//~| NOTE cannot infer type for `U`
1717
//~| NOTE type annotations or generic parameter binding
1818
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pub fn foo<State>(_: TypeWithState<State>) {}
1717

1818
pub fn bar() {
1919
foo(TypeWithState(marker::PhantomData));
20-
//~^ ERROR unable to infer enough type information about `_` [E0282]
21-
//~| NOTE cannot infer type for `_`
20+
//~^ ERROR unable to infer enough type information about `State` [E0282]
21+
//~| NOTE cannot infer type for `State`
2222
//~| NOTE type annotations or generic parameter binding
2323
}
2424

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

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

1111
fn main() {
1212
let v = &[];
13-
let it = v.iter(); //~ ERROR unable to infer enough type information about `_` [E0282]
14-
//~| NOTE cannot infer type for `_`
13+
let it = v.iter(); //~ ERROR unable to infer enough type information about `T` [E0282]
14+
//~| NOTE cannot infer type for `T`
1515
//~| NOTE type annotations or generic parameter binding
1616
}

src/test/compile-fail/method-ambig-one-trait-unknown-int-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl foo for Vec<isize> {
3232
fn m1() {
3333
// we couldn't infer the type of the vector just based on calling foo()...
3434
let mut x = Vec::new();
35-
//~^ ERROR unable to infer enough type information about `_` [E0282]
35+
//~^ ERROR unable to infer enough type information about `T` [E0282]
3636
x.foo();
3737
}
3838

src/test/compile-fail/traits-multidispatch-convert-ambig-dest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ where T : Convert<U>
3434

3535
fn a() {
3636
test(22, std::default::Default::default());
37-
//~^ ERROR unable to infer enough type information about `_` [E0282]
38-
//~| NOTE cannot infer type for `_`
37+
//~^ ERROR unable to infer enough type information about `U` [E0282]
38+
//~| NOTE cannot infer type for `U`
3939
//~| NOTE type annotations or generic parameter binding
4040
}
4141

src/test/compile-fail/unconstrained-none.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Issue #5062
1212

1313
fn main() {
14-
None; //~ ERROR unable to infer enough type information about `_` [E0282]
15-
//~| NOTE cannot infer type for `_`
14+
None; //~ ERROR unable to infer enough type information about `T` [E0282]
15+
//~| NOTE cannot infer type for `T`
1616
//~| NOTE type annotations or generic parameter binding
1717
}

src/test/compile-fail/unconstrained-ref.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct S<'a, T:'a> {
1313
}
1414

1515
fn main() {
16-
S { o: &None }; //~ ERROR unable to infer enough type information about `_` [E0282]
17-
//~| NOTE cannot infer type for `_`
16+
S { o: &None }; //~ ERROR unable to infer enough type information about `T` [E0282]
17+
//~| NOTE cannot infer type for `T`
1818
//~| NOTE type annotations or generic parameter binding
1919
}

src/test/compile-fail/vector-no-ann.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
fn main() {
1313
let _foo = Vec::new();
14-
//~^ ERROR unable to infer enough type information about `_` [E0282]
15-
//~| NOTE cannot infer type for `_`
14+
//~^ ERROR unable to infer enough type information about `T` [E0282]
15+
//~| NOTE cannot infer type for `T`
1616
//~| NOTE type annotations or generic parameter binding
1717
}

src/test/ui/codemap_tests/repair_span_std_macros.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error[E0282]: unable to infer enough type information about `_`
1+
error[E0282]: unable to infer enough type information about `T`
22
--> $DIR/repair_span_std_macros.rs:12:13
33
|
44
12 | let x = vec![];
5-
| ^^^^^^ cannot infer type for `_`
5+
| ^^^^^^ cannot infer type for `T`
66
|
77
= note: type annotations or generic parameter binding required
88
= note: this error originates in a macro outside of the current crate

0 commit comments

Comments
 (0)