]> git.proxmox.com Git - rustc.git/blob - src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / numeric / numeric-suffix / numeric-suffix-i32.stderr
1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix-i32.rs:6:16
3 |
4 LL | foo::<i32>(42_usize);
5 | ^^^^^^^^ expected `i32`, found `usize`
6 |
7 help: change the type of the numeric literal from `usize` to `i32`
8 |
9 LL | foo::<i32>(42_i32);
10 | ~~~
11
12 error[E0308]: mismatched types
13 --> $DIR/numeric-suffix-i32.rs:9:16
14 |
15 LL | foo::<i32>(42_u64);
16 | ^^^^^^ expected `i32`, found `u64`
17 |
18 help: change the type of the numeric literal from `u64` to `i32`
19 |
20 LL | foo::<i32>(42_i32);
21 | ~~~
22
23 error[E0308]: mismatched types
24 --> $DIR/numeric-suffix-i32.rs:12:16
25 |
26 LL | foo::<i32>(42_u32);
27 | ^^^^^^ expected `i32`, found `u32`
28 |
29 help: change the type of the numeric literal from `u32` to `i32`
30 |
31 LL | foo::<i32>(42_i32);
32 | ~~~
33
34 error[E0308]: mismatched types
35 --> $DIR/numeric-suffix-i32.rs:15:16
36 |
37 LL | foo::<i32>(42_u16);
38 | ^^^^^^ expected `i32`, found `u16`
39 |
40 help: change the type of the numeric literal from `u16` to `i32`
41 |
42 LL | foo::<i32>(42_i32);
43 | ~~~
44
45 error[E0308]: mismatched types
46 --> $DIR/numeric-suffix-i32.rs:18:16
47 |
48 LL | foo::<i32>(42_u8);
49 | ^^^^^ expected `i32`, found `u8`
50 |
51 help: change the type of the numeric literal from `u8` to `i32`
52 |
53 LL | foo::<i32>(42_i32);
54 | ~~~
55
56 error[E0308]: mismatched types
57 --> $DIR/numeric-suffix-i32.rs:21:16
58 |
59 LL | foo::<i32>(42_isize);
60 | ^^^^^^^^ expected `i32`, found `isize`
61 |
62 help: change the type of the numeric literal from `isize` to `i32`
63 |
64 LL | foo::<i32>(42_i32);
65 | ~~~
66
67 error[E0308]: mismatched types
68 --> $DIR/numeric-suffix-i32.rs:24:16
69 |
70 LL | foo::<i32>(42_i64);
71 | ^^^^^^ expected `i32`, found `i64`
72 |
73 help: change the type of the numeric literal from `i64` to `i32`
74 |
75 LL | foo::<i32>(42_i32);
76 | ~~~
77
78 error[E0308]: mismatched types
79 --> $DIR/numeric-suffix-i32.rs:28:16
80 |
81 LL | foo::<i32>(42_i16);
82 | ^^^^^^ expected `i32`, found `i16`
83 |
84 help: change the type of the numeric literal from `i16` to `i32`
85 |
86 LL | foo::<i32>(42_i32);
87 | ~~~
88
89 error[E0308]: mismatched types
90 --> $DIR/numeric-suffix-i32.rs:31:16
91 |
92 LL | foo::<i32>(42_i8);
93 | ^^^^^ expected `i32`, found `i8`
94 |
95 help: change the type of the numeric literal from `i8` to `i32`
96 |
97 LL | foo::<i32>(42_i32);
98 | ~~~
99
100 error[E0308]: mismatched types
101 --> $DIR/numeric-suffix-i32.rs:34:16
102 |
103 LL | foo::<i32>(42.0_f64);
104 | ^^^^^^^^ expected `i32`, found `f64`
105 |
106 help: change the type of the numeric literal from `f64` to `i32`
107 |
108 LL | foo::<i32>(42i32);
109 | ~~~
110
111 error[E0308]: mismatched types
112 --> $DIR/numeric-suffix-i32.rs:37:16
113 |
114 LL | foo::<i32>(42.0_f32);
115 | ^^^^^^^^ expected `i32`, found `f32`
116 |
117 help: change the type of the numeric literal from `f32` to `i32`
118 |
119 LL | foo::<i32>(42i32);
120 | ~~~
121
122 error: aborting due to 11 previous errors
123
124 For more information about this error, try `rustc --explain E0308`.