Skip to content

Commit 7ae757f

Browse files
committed
add annotation for variable that used to infer to bot
1 parent bf9d714 commit 7ae757f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-fail/issue-948.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// error-pattern:beep boop
22
fn main() {
33
let origin = {x: 0, y: 0};
4-
let f = {x: (fail "beep boop") with origin};
4+
let f: {x:int,y:int} = {x: (fail "beep boop") with origin};
55
}

0 commit comments

Comments
 (0)