-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Description
Given this code:
fn main() {
let t:u32 = 0;
let v = vec![42];
println!("{}", v[t]);
}
I would argue that putting the first piece of information which when fixed, leads to a fix of the problem, and spelling out the ":", would make the error message more helpful.
Instead of trait std::vec::Vec<{integer}>: std::ops::Index not satisfied it could be The trait std::ops::Indexis not implemented forstd::vec::Vec<({integer}, {integer})>``
rustc nightly rustc 1.14.0-nightly (16eeeac78 2016-10-18)
Metadata
Metadata
Assignees
Labels
No labels