add annotation for variable that used to infer to bot

This commit is contained in:
Niko Matsakis 2012-03-24 21:55:53 -07:00
parent bf9d714d46
commit 7ae757ff1a

View file

@ -1,5 +1,5 @@
// error-pattern:beep boop
fn main() {
let origin = {x: 0, y: 0};
let f = {x: (fail "beep boop") with origin};
let f: {x:int,y:int} = {x: (fail "beep boop") with origin};
}