rust/src/test/ui/suggestions/import-trait-for-method-call.rs

10 lines
243 B
Rust
Raw Normal View History

2021-04-23 20:08:51 -05:00
use std::hash::BuildHasher;
fn next_u64() -> u64 {
let bh = std::collections::hash_map::RandomState::new();
let h = bh.build_hasher();
h.finish() //~ ERROR no method named `finish` found for struct `DefaultHasher`
}
fn main() {}