]> git.proxmox.com Git - rustc.git/blob - tests/ui/type/type-check/point-at-inference-3.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type / type-check / point-at-inference-3.rs
1 // run-rustfix
2 fn main() {
3 let mut v = Vec::new();
4 v.push(0i32);
5 v.push(0);
6 v.push(1u32); //~ ERROR mismatched types
7 //~^ NOTE expected `i32`, found `u32`
8 //~| NOTE arguments to this method are incorrect
9 //~| NOTE associated function defined here
10 //~| HELP change the type of the numeric literal from `u32` to `i32`
11 }