aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lib-map.rs
blob: 11101c849b8c10e3e652dc84963b9193972e74ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// -*- rust -*-

use std;
import std.map;

fn test_simple() {
  fn eq(&uint x, &uint y) -> bool { ret x == y; }

  let map.hashfn[uint] hasher = std.util.id[uint];
  let map.eqfn[uint] eqer = eq;
  let map.hashmap[uint, uint] hm = map.mk_hashmap[uint, uint](hasher, eqer);
}

fn main() {
  test_simple();
}