|
| 1 | +error[E0080]: more C-variadic arguments read than were passed |
| 2 | + --> $DIR/c-variadic-fail.rs:23:13 |
| 3 | + | |
| 4 | +LL | const { read_n::<1>() } |
| 5 | + | ^^^^^^^^^^^^^ evaluation of `read_too_many::{constant#2}` failed inside this call |
| 6 | + | |
| 7 | +note: inside `read_n::<1>` |
| 8 | + --> $DIR/c-variadic-fail.rs:11:17 |
| 9 | + | |
| 10 | +LL | let _ = ap.arg::<i32>(); |
| 11 | + | ^^^^^^^^^^^^^^^ |
| 12 | +note: inside `VaList::<'_>::arg::<i32>` |
| 13 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 14 | + |
| 15 | +note: erroneous constant encountered |
| 16 | + --> $DIR/c-variadic-fail.rs:23:5 |
| 17 | + | |
| 18 | +LL | const { read_n::<1>() } |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + |
| 21 | +note: erroneous constant encountered |
| 22 | + --> $DIR/c-variadic-fail.rs:23:5 |
| 23 | + | |
| 24 | +LL | const { read_n::<1>() } |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | + | |
| 27 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 28 | + |
| 29 | +error[E0080]: more C-variadic arguments read than were passed |
| 30 | + --> $DIR/c-variadic-fail.rs:27:13 |
| 31 | + | |
| 32 | +LL | const { read_n::<2>(1) } |
| 33 | + | ^^^^^^^^^^^^^^ evaluation of `read_too_many::{constant#3}` failed inside this call |
| 34 | + | |
| 35 | +note: inside `read_n::<2>` |
| 36 | + --> $DIR/c-variadic-fail.rs:11:17 |
| 37 | + | |
| 38 | +LL | let _ = ap.arg::<i32>(); |
| 39 | + | ^^^^^^^^^^^^^^^ |
| 40 | +note: inside `VaList::<'_>::arg::<i32>` |
| 41 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 42 | + |
| 43 | +note: erroneous constant encountered |
| 44 | + --> $DIR/c-variadic-fail.rs:27:5 |
| 45 | + | |
| 46 | +LL | const { read_n::<2>(1) } |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 48 | + |
| 49 | +note: erroneous constant encountered |
| 50 | + --> $DIR/c-variadic-fail.rs:27:5 |
| 51 | + | |
| 52 | +LL | const { read_n::<2>(1) } |
| 53 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 54 | + | |
| 55 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 56 | + |
| 57 | +error[E0080]: va_arg type mismatch: requested `u32`, but next argument is `i32` |
| 58 | + --> $DIR/c-variadic-fail.rs:45:13 |
| 59 | + | |
| 60 | +LL | const { read_as::<u32>(1i32) }; |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^ evaluation of `read_cast::{constant#6}` failed inside this call |
| 62 | + | |
| 63 | +note: inside `read_as::<u32>` |
| 64 | + --> $DIR/c-variadic-fail.rs:32:5 |
| 65 | + | |
| 66 | +LL | ap.arg::<T>() |
| 67 | + | ^^^^^^^^^^^^^ |
| 68 | +note: inside `VaList::<'_>::arg::<u32>` |
| 69 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 70 | + |
| 71 | +note: erroneous constant encountered |
| 72 | + --> $DIR/c-variadic-fail.rs:45:5 |
| 73 | + | |
| 74 | +LL | const { read_as::<u32>(1i32) }; |
| 75 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 76 | + |
| 77 | +note: erroneous constant encountered |
| 78 | + --> $DIR/c-variadic-fail.rs:45:5 |
| 79 | + | |
| 80 | +LL | const { read_as::<u32>(1i32) }; |
| 81 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 82 | + | |
| 83 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 84 | + |
| 85 | +error[E0080]: va_arg type mismatch: requested `i32`, but next argument is `u32` |
| 86 | + --> $DIR/c-variadic-fail.rs:48:13 |
| 87 | + | |
| 88 | +LL | const { read_as::<i32>(1u32) }; |
| 89 | + | ^^^^^^^^^^^^^^^^^^^^ evaluation of `read_cast::{constant#7}` failed inside this call |
| 90 | + | |
| 91 | +note: inside `read_as::<i32>` |
| 92 | + --> $DIR/c-variadic-fail.rs:32:5 |
| 93 | + | |
| 94 | +LL | ap.arg::<T>() |
| 95 | + | ^^^^^^^^^^^^^ |
| 96 | +note: inside `VaList::<'_>::arg::<i32>` |
| 97 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 98 | + |
| 99 | +note: erroneous constant encountered |
| 100 | + --> $DIR/c-variadic-fail.rs:48:5 |
| 101 | + | |
| 102 | +LL | const { read_as::<i32>(1u32) }; |
| 103 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 104 | + |
| 105 | +note: erroneous constant encountered |
| 106 | + --> $DIR/c-variadic-fail.rs:48:5 |
| 107 | + | |
| 108 | +LL | const { read_as::<i32>(1u32) }; |
| 109 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 110 | + | |
| 111 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 112 | + |
| 113 | +error[E0080]: va_arg type mismatch: requested `i32`, but next argument is `u64` |
| 114 | + --> $DIR/c-variadic-fail.rs:51:13 |
| 115 | + | |
| 116 | +LL | const { read_as::<i32>(1u64) }; |
| 117 | + | ^^^^^^^^^^^^^^^^^^^^ evaluation of `read_cast::{constant#8}` failed inside this call |
| 118 | + | |
| 119 | +note: inside `read_as::<i32>` |
| 120 | + --> $DIR/c-variadic-fail.rs:32:5 |
| 121 | + | |
| 122 | +LL | ap.arg::<T>() |
| 123 | + | ^^^^^^^^^^^^^ |
| 124 | +note: inside `VaList::<'_>::arg::<i32>` |
| 125 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 126 | + |
| 127 | +note: erroneous constant encountered |
| 128 | + --> $DIR/c-variadic-fail.rs:51:5 |
| 129 | + | |
| 130 | +LL | const { read_as::<i32>(1u64) }; |
| 131 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 132 | + |
| 133 | +note: erroneous constant encountered |
| 134 | + --> $DIR/c-variadic-fail.rs:51:5 |
| 135 | + | |
| 136 | +LL | const { read_as::<i32>(1u64) }; |
| 137 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 138 | + | |
| 139 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 140 | + |
| 141 | +error[E0080]: va_arg type mismatch: requested `f64`, but next argument is `i32` |
| 142 | + --> $DIR/c-variadic-fail.rs:54:13 |
| 143 | + | |
| 144 | +LL | const { read_as::<f64>(1i32) }; |
| 145 | + | ^^^^^^^^^^^^^^^^^^^^ evaluation of `read_cast::{constant#9}` failed inside this call |
| 146 | + | |
| 147 | +note: inside `read_as::<f64>` |
| 148 | + --> $DIR/c-variadic-fail.rs:32:5 |
| 149 | + | |
| 150 | +LL | ap.arg::<T>() |
| 151 | + | ^^^^^^^^^^^^^ |
| 152 | +note: inside `VaList::<'_>::arg::<f64>` |
| 153 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 154 | + |
| 155 | +note: erroneous constant encountered |
| 156 | + --> $DIR/c-variadic-fail.rs:54:5 |
| 157 | + | |
| 158 | +LL | const { read_as::<f64>(1i32) }; |
| 159 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 160 | + |
| 161 | +note: erroneous constant encountered |
| 162 | + --> $DIR/c-variadic-fail.rs:54:5 |
| 163 | + | |
| 164 | +LL | const { read_as::<f64>(1i32) }; |
| 165 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 166 | + | |
| 167 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 168 | + |
| 169 | +error[E0080]: va_arg type mismatch: requested `*const u8`, but next argument is `i32` |
| 170 | + --> $DIR/c-variadic-fail.rs:57:13 |
| 171 | + | |
| 172 | +LL | const { read_as::<*const u8>(1i32) }; |
| 173 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `read_cast::{constant#10}` failed inside this call |
| 174 | + | |
| 175 | +note: inside `read_as::<*const u8>` |
| 176 | + --> $DIR/c-variadic-fail.rs:32:5 |
| 177 | + | |
| 178 | +LL | ap.arg::<T>() |
| 179 | + | ^^^^^^^^^^^^^ |
| 180 | +note: inside `VaList::<'_>::arg::<*const u8>` |
| 181 | + --> $SRC_DIR/core/src/ffi/va_list.rs:LL:COL |
| 182 | + |
| 183 | +note: erroneous constant encountered |
| 184 | + --> $DIR/c-variadic-fail.rs:57:5 |
| 185 | + | |
| 186 | +LL | const { read_as::<*const u8>(1i32) }; |
| 187 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 188 | + |
| 189 | +note: erroneous constant encountered |
| 190 | + --> $DIR/c-variadic-fail.rs:57:5 |
| 191 | + | |
| 192 | +LL | const { read_as::<*const u8>(1i32) }; |
| 193 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 194 | + | |
| 195 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 196 | + |
| 197 | +error: aborting due to 7 previous errors |
| 198 | + |
| 199 | +For more information about this error, try `rustc --explain E0080`. |
0 commit comments