]>
git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/bad-type-in-vec-push.rs
1 // The error message here still is pretty confusing.
4 let mut result
= vec
![1];
5 // The type of `result` is constrained to be `Vec<{integer}>` here.
6 // But the logic we use to find what expression constrains a type
7 // is not sophisticated enough to know this.
9 let mut vector
= Vec
::new();
12 //~^ ERROR mismatched types
13 // So it thinks that the type of `result` is constrained here.
19 //~^ ERROR mismatched types