blob: 601aca267cccc6ce790b25a09d7b6a80a3e144a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// -*- 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);
}
|