]>
git.proxmox.com Git - rustc.git/blob - src/libcollections/tests/lib.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
13 #![feature(attr_literals)]
14 #![feature(box_syntax)]
15 #![feature(inclusive_range_syntax)]
16 #![feature(collection_placement)]
17 #![feature(collections)]
19 #![feature(exact_size_is_empty)]
20 #![feature(iterator_step_by)]
22 #![feature(placement_in_syntax)]
24 #![feature(repr_align)]
25 #![feature(slice_rotate)]
27 #![feature(str_escape)]
29 #![feature(unboxed_closures)]
31 #![feature(utf8_error_error_len)]
33 extern crate collections
;
35 extern crate std_unicode
;
38 use std
::hash
::{Hash, Hasher}
;
39 use std
::collections
::hash_map
::DefaultHasher
;
52 fn hash
<T
: Hash
>(t
: &T
) -> u64 {
53 let mut s
= DefaultHasher
::new();