use std::collections::HashMap; trait Map { fn get(&self, k: K) -> V { panic!() } } impl Map for HashMap {} // Test that trait types printed in error msgs include the type arguments. fn main() { let x: Box> = HashMap::new().into(); let x: Box> = x; let y: Box> = Box::new(x); //~^ ERROR `Box>: Map` is not satisfied }