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

12 lines
172 B
Rust

// -*- rust -*-
// error-pattern: record
type point = rec(int x, int y);
fn main() {
let point origin = rec(x=0, y=0);
let point origin3d = rec(z=0 with origin);
}