Closed
Description
The code
trait T {} impl<U: T> Vec<U> {} fn main() { let r = Vec::from_slice(&[1u]); }
fails with
break.rs:4:21: 4:36 error: unresolved name `Vec::from_slice`. break.rs:4 fn main() { let r = Vec::from_slice(&[1u]); }
Removing the impl
line causes the code to compile fine.
Thx Ms2ger for finding such a small example case.