rust/src/test/compile-fail/rec-extend.rs
2012-09-04 15:47:04 -07:00

9 lines
119 B
Rust

// error-pattern:expected `int` but found `bool`
fn main() {
let a = {foo: 0i};
let b = {foo: true,.. a};
}