]> git.lizzy.rs Git - rust.git/blob - tests/ui/fxhash.rs
Merge branch 'master' into add-lints-aseert-checks
[rust.git] / tests / ui / fxhash.rs
1 #![warn(clippy::default_hash_types)]
2 #![feature(rustc_private)]
3
4 extern crate rustc_data_structures;
5
6 use rustc_data_structures::fx::{FxHashMap, FxHashSet};
7 use std::collections::{HashMap, HashSet};
8
9 fn main() {
10     let _map: HashMap<String, String> = HashMap::default();
11     let _set: HashSet<String> = HashSet::default();
12
13     // test that the lint doesn't also match the Fx variants themselves ðŸ˜‚
14     let _fx_map: FxHashMap<String, String> = FxHashMap::default();
15     let _fx_set: FxHashSet<String> = FxHashSet::default();
16 }