PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
3fn main() {
4
5    let a = {foo: 0i};
6
7    let b = {foo: true with a};
8}