blob: 86c68e5b9056d17bd77698999b0ded36548f845c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
// -*- rust -*-
// error-pattern: precondition
type point = rec(int x, int y);
fn main() {
let point origin;
let point right = rec(x=10 with origin);
origin = rec(x=0, y=0);
}
|