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