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