@@ -37,37 +37,37 @@ error[E0308]: mismatched types
37
37
error[E0617]: can't pass `f32` to variadic function
38
38
--> $DIR/variadic-ffi-3.rs:34:19
39
39
|
40
- 34 | foo(1, 2, 3f32); //~ ERROR can't pass `f32` to variadic function, cast to `c_double`
40
+ 34 | foo(1, 2, 3f32); //~ ERROR can't pass `f32` to variadic function
41
41
| ^^^^ help: cast the value to `c_double`: `3f32 as c_double`
42
42
43
43
error[E0617]: can't pass `bool` to variadic function
44
44
--> $DIR/variadic-ffi-3.rs:35:19
45
45
|
46
- 35 | foo(1, 2, true); //~ ERROR can't pass `bool` to variadic function, cast to `c_int`
46
+ 35 | foo(1, 2, true); //~ ERROR can't pass `bool` to variadic function
47
47
| ^^^^ help: cast the value to `c_int`: `true as c_int`
48
48
49
49
error[E0617]: can't pass `i8` to variadic function
50
50
--> $DIR/variadic-ffi-3.rs:36:19
51
51
|
52
- 36 | foo(1, 2, 1i8); //~ ERROR can't pass `i8` to variadic function, cast to `c_int`
52
+ 36 | foo(1, 2, 1i8); //~ ERROR can't pass `i8` to variadic function
53
53
| ^^^ help: cast the value to `c_int`: `1i8 as c_int`
54
54
55
55
error[E0617]: can't pass `u8` to variadic function
56
56
--> $DIR/variadic-ffi-3.rs:37:19
57
57
|
58
- 37 | foo(1, 2, 1u8); //~ ERROR can't pass `u8` to variadic function, cast to `c_uint`
58
+ 37 | foo(1, 2, 1u8); //~ ERROR can't pass `u8` to variadic function
59
59
| ^^^ help: cast the value to `c_uint`: `1u8 as c_uint`
60
60
61
61
error[E0617]: can't pass `i16` to variadic function
62
62
--> $DIR/variadic-ffi-3.rs:38:19
63
63
|
64
- 38 | foo(1, 2, 1i16); //~ ERROR can't pass `i16` to variadic function, cast to `c_int`
64
+ 38 | foo(1, 2, 1i16); //~ ERROR can't pass `i16` to variadic function
65
65
| ^^^^ help: cast the value to `c_int`: `1i16 as c_int`
66
66
67
67
error[E0617]: can't pass `u16` to variadic function
68
68
--> $DIR/variadic-ffi-3.rs:39:19
69
69
|
70
- 39 | foo(1, 2, 1u16); //~ ERROR can't pass `u16` to variadic function, cast to `c_uint`
70
+ 39 | foo(1, 2, 1u16); //~ ERROR can't pass `u16` to variadic function
71
71
| ^^^^ help: cast the value to `c_uint`: `1u16 as c_uint`
72
72
73
73
error: aborting due to 10 previous errors
0 commit comments