This is almost a feature request. This code: ``` fn main() { use std::collections::BTreeMap; println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>()); } ``` Gives the errors (rustc 1.30.0-nightly 4591a245c 2018-09-22): ``` warning: unnecessary path disambiguator --> ...\test.rs:3:36 | 3 | println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>()); | ^^ try removing `::` error: expected token: `,` --> ...\test.rs:3:58 | 3 | println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>()); | ^ error: aborting due to previous error ``` But the problem is a missing : after std::mem:. Can rustc give a better error message here?