]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-83477.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / issue-83477.rs
1 // compile-flags: -Zunstable-options
2 // check-pass
3 #![warn(rustc::internal)]
4
5 #[allow(rustc::foo::bar::default_hash_types)]
6 //~^ WARN unknown lint: `rustc::foo::bar::default_hash_types`
7 //~| HELP did you mean
8 //~| SUGGESTION rustc::default_hash_types
9 #[allow(rustc::foo::default_hash_types)]
10 //~^ WARN unknown lint: `rustc::foo::default_hash_types`
11 //~| HELP did you mean
12 //~| SUGGESTION rustc::default_hash_types
13 fn main() {
14     let _ = std::collections::HashMap::<String, String>::new();
15     //~^ WARN prefer `FxHashMap` over `HashMap`, it has better performance
16 }