/src/test/compile-fail/rec-extend.rs

http://github.com/jruderman/rust · Rust · 8 lines · 4 code · 3 blank · 1 comment · 0 complexity · def001b09d43b080c09e818290529b5b MD5 · raw file

  1. // error-pattern:expected `int` but found `bool`
  2. fn main() {
  3. let a = {foo: 0i};
  4. let b = {foo: true with a};
  5. }