Skip to content

Commit 58193d9

Browse files
committed
Update many_single_char_names to deal with inference error
1 parent d5ec41c commit 58193d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/many_single_char_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn bla() {
2929
fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32) {}
3030

3131
fn bindings2() {
32-
let (a, b, c, d, e, f, g, h) = unimplemented!();
32+
let (a, b, c, d, e, f, g, h): (bool, bool, bool, bool, bool, bool, bool, bool) = unimplemented!();
3333
}
3434

3535
fn shadowing() {

tests/ui/many_single_char_names.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LL | fn bindings(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32, h: i32)
4444
error: 8 bindings with single-character names in scope
4545
--> $DIR/many_single_char_names.rs:32:10
4646
|
47-
LL | let (a, b, c, d, e, f, g, h) = unimplemented!();
47+
LL | let (a, b, c, d, e, f, g, h): (bool, bool, bool, bool, bool, bool, bool, bool) = unimplemented!();
4848
| ^ ^ ^ ^ ^ ^ ^ ^
4949

5050
error: aborting due to 5 previous errors

0 commit comments

Comments
 (0)