rust/tests/ui/crashes/ice-3717.rs

14 lines
348 B
Rust
Raw Normal View History

2020-04-02 21:09:30 -05:00
#![deny(clippy::implicit_hasher)]
2024-07-15 03:44:02 -05:00
//@no-rustfix: need to change the suggestion to a multipart suggestion
2019-02-16 15:41:06 -06:00
use std::collections::HashSet;
fn main() {}
pub fn ice_3717(_: &HashSet<usize>) {
//~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
2019-02-16 15:41:06 -06:00
let _ = [0u8; 0];
let _: HashSet<usize> = HashSet::new();
}