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

/src/test/compile-fail/fru-extra-field.rs

http://github.com/jruderman/rust
Rust | 11 lines | 5 code | 4 blank | 2 comment | 0 complexity | 2b08e177967328e49faf5345a37b8d23 MD5 | raw file
 1// -*- rust -*-
 2
 3// error-pattern: record
 4
 5type point = {x: int, y: int};
 6
 7fn main() {
 8    let origin: point = {x: 0, y: 0};
 9
10    let origin3d: point = {z: 0 with origin};
11}