summary refs log tree commit diff
path: root/src/test/run-pass/issue-970.rs
blob: 17fa82980a99f6e3cee8f403a779c4c962d116ac (plain)
1
2
3
4
5
6
enum maybe_ordered_pair {
    yes({low: int, high: int} : less_than(*.low, *.high)),
    no
}
pure fn less_than(x: int, y: int) -> bool { ret x < y; }
fn main() { }