add annotation for variable that used to infer to bot
This commit is contained in:
parent
bf9d714d46
commit
7ae757ff1a
1 changed files with 1 additions and 1 deletions
|
|
@ -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};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue