]> git.proxmox.com Git - rustc.git/blob - tests/ui/type/type-check/point-at-inference-3.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / type / type-check / point-at-inference-3.stderr
1 error[E0308]: mismatched types
2 --> $DIR/point-at-inference-3.rs:8:12
3 |
4 LL | v.push(0i32);
5 | - ---- this argument has type `i32`...
6 | |
7 | ... which causes `v` to have type `Vec<i32>`
8 ...
9 LL | v.push(1u32);
10 | ---- ^^^^ expected `i32`, found `u32`
11 | |
12 | arguments to this method are incorrect
13 |
14 note: method defined here
15 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
16 help: change the type of the numeric literal from `u32` to `i32`
17 |
18 LL | v.push(1i32);
19 | ~~~
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0308`.