fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: requires at least a template string argument 2 --> $DIR/parse-error.rs:11:9 3 | 4LL | asm!(); 5 | ^^^^^^ 6 7error: asm template must be a string literal 8 --> $DIR/parse-error.rs:13:14 9 | 10LL | asm!(foo); 11 | ^^^ 12 13error: expected token: `,` 14 --> $DIR/parse-error.rs:15:19 15 | 16LL | asm!("{}" foo); 17 | ^^^ expected `,` 18 19error: expected operand, clobber_abi, options, or additional template string 20 --> $DIR/parse-error.rs:17:20 21 | 22LL | asm!("{}", foo); 23 | ^^^ expected operand, clobber_abi, options, or additional template string 24 25error: expected `(`, found `foo` 26 --> $DIR/parse-error.rs:19:23 27 | 28LL | asm!("{}", in foo); 29 | ^^^ expected `(` 30 31error: expected `)`, found `foo` 32 --> $DIR/parse-error.rs:21:27 33 | 34LL | asm!("{}", in(reg foo)); 35 | ^^^ expected `)` 36 37error: expected expression, found end of macro arguments 38 --> $DIR/parse-error.rs:23:27 39 | 40LL | asm!("{}", in(reg)); 41 | ^ expected expression 42 43error: expected register class or explicit register 44 --> $DIR/parse-error.rs:25:26 45 | 46LL | asm!("{}", inout(=) foo => bar); 47 | ^ 48 49error: expected expression, found end of macro arguments 50 --> $DIR/parse-error.rs:27:37 51 | 52LL | asm!("{}", inout(reg) foo =>); 53 | ^ expected expression 54 55error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `=>` 56 --> $DIR/parse-error.rs:29:32 57 | 58LL | asm!("{}", in(reg) foo => bar); 59 | ^^ expected one of 7 possible tokens 60 61error: expected a path for argument to `sym` 62 --> $DIR/parse-error.rs:31:24 63 | 64LL | asm!("{}", sym foo + bar); 65 | ^^^^^^^^^ 66 67error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo` 68 --> $DIR/parse-error.rs:33:26 69 | 70LL | asm!("", options(foo)); 71 | ^^^ expected one of 10 possible tokens 72 73error: expected one of `)` or `,`, found `foo` 74 --> $DIR/parse-error.rs:35:32 75 | 76LL | asm!("", options(nomem foo)); 77 | ^^^ expected one of `)` or `,` 78 79error: expected one of `)`, `att_syntax`, `may_unwind`, `nomem`, `noreturn`, `nostack`, `preserves_flags`, `pure`, `raw`, or `readonly`, found `foo` 80 --> $DIR/parse-error.rs:37:33 81 | 82LL | asm!("", options(nomem, foo)); 83 | ^^^ expected one of 10 possible tokens 84 85error: at least one abi must be provided as an argument to `clobber_abi` 86 --> $DIR/parse-error.rs:44:30 87 | 88LL | asm!("", clobber_abi()); 89 | ^ 90 91error: expected string literal 92 --> $DIR/parse-error.rs:46:30 93 | 94LL | asm!("", clobber_abi(foo)); 95 | ^^^ not a string literal 96 97error: expected one of `)` or `,`, found `foo` 98 --> $DIR/parse-error.rs:48:34 99 | 100LL | asm!("", clobber_abi("C" foo)); 101 | ^^^ expected one of `)` or `,` 102 103error: expected string literal 104 --> $DIR/parse-error.rs:50:35 105 | 106LL | asm!("", clobber_abi("C", foo)); 107 | ^^^ not a string literal 108 109error: expected string literal 110 --> $DIR/parse-error.rs:52:30 111 | 112LL | asm!("", clobber_abi(1)); 113 | ^ not a string literal 114 115error: expected string literal 116 --> $DIR/parse-error.rs:54:30 117 | 118LL | asm!("", clobber_abi(())); 119 | ^ not a string literal 120 121error: expected string literal 122 --> $DIR/parse-error.rs:56:30 123 | 124LL | asm!("", clobber_abi(uwu)); 125 | ^^^ not a string literal 126 127error: expected string literal 128 --> $DIR/parse-error.rs:58:30 129 | 130LL | asm!("", clobber_abi({})); 131 | ^ not a string literal 132 133error: expected string literal 134 --> $DIR/parse-error.rs:60:30 135 | 136LL | asm!("", clobber_abi(loop {})); 137 | ^^^^ not a string literal 138 139error: expected string literal 140 --> $DIR/parse-error.rs:62:30 141 | 142LL | asm!("", clobber_abi(if)); 143 | ^^ not a string literal 144 145error: expected string literal 146 --> $DIR/parse-error.rs:64:30 147 | 148LL | asm!("", clobber_abi(do)); 149 | ^^ not a string literal 150 151error: expected string literal 152 --> $DIR/parse-error.rs:66:30 153 | 154LL | asm!("", clobber_abi(<)); 155 | ^ not a string literal 156 157error: expected string literal 158 --> $DIR/parse-error.rs:68:30 159 | 160LL | asm!("", clobber_abi(.)); 161 | ^ not a string literal 162 163error: duplicate argument named `a` 164 --> $DIR/parse-error.rs:76:36 165 | 166LL | asm!("{a}", a = const foo, a = const bar); 167 | ------------- ^^^^^^^^^^^^^ duplicate argument 168 | | 169 | previously here 170 171error: argument never used 172 --> $DIR/parse-error.rs:76:36 173 | 174LL | asm!("{a}", a = const foo, a = const bar); 175 | ^^^^^^^^^^^^^ argument never used 176 | 177 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"` 178 179error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `""` 180 --> $DIR/parse-error.rs:82:29 181 | 182LL | asm!("", options(), ""); 183 | ^^ expected one of 9 possible tokens 184 185error: expected one of `clobber_abi`, `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"{}"` 186 --> $DIR/parse-error.rs:84:33 187 | 188LL | asm!("{}", in(reg) foo, "{}", out(reg) foo); 189 | ^^^^ expected one of 9 possible tokens 190 191error: asm template must be a string literal 192 --> $DIR/parse-error.rs:86:14 193 | 194LL | asm!(format!("{{{}}}", 0), in(reg) foo); 195 | ^^^^^^^^^^^^^^^^^^^^ 196 | 197 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) 198 199error: asm template must be a string literal 200 --> $DIR/parse-error.rs:88:21 201 | 202LL | asm!("{1}", format!("{{{}}}", 0), in(reg) foo, out(reg) bar); 203 | ^^^^^^^^^^^^^^^^^^^^ 204 | 205 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) 206 207error: _ cannot be used for input operands 208 --> $DIR/parse-error.rs:90:28 209 | 210LL | asm!("{}", in(reg) _); 211 | ^ 212 213error: _ cannot be used for input operands 214 --> $DIR/parse-error.rs:92:31 215 | 216LL | asm!("{}", inout(reg) _); 217 | ^ 218 219error: _ cannot be used for input operands 220 --> $DIR/parse-error.rs:94:35 221 | 222LL | asm!("{}", inlateout(reg) _); 223 | ^ 224 225error: requires at least a template string argument 226 --> $DIR/parse-error.rs:101:1 227 | 228LL | global_asm!(); 229 | ^^^^^^^^^^^^^ 230 231error: asm template must be a string literal 232 --> $DIR/parse-error.rs:103:13 233 | 234LL | global_asm!(FOO); 235 | ^^^ 236 237error: expected token: `,` 238 --> $DIR/parse-error.rs:105:18 239 | 240LL | global_asm!("{}" FOO); 241 | ^^^ expected `,` 242 243error: expected operand, options, or additional template string 244 --> $DIR/parse-error.rs:107:19 245 | 246LL | global_asm!("{}", FOO); 247 | ^^^ expected operand, options, or additional template string 248 249error: expected expression, found end of macro arguments 250 --> $DIR/parse-error.rs:109:24 251 | 252LL | global_asm!("{}", const); 253 | ^ expected expression 254 255error: expected one of `,`, `.`, `?`, or an operator, found `FOO` 256 --> $DIR/parse-error.rs:111:30 257 | 258LL | global_asm!("{}", const(reg) FOO); 259 | ^^^ expected one of `,`, `.`, `?`, or an operator 260 261error: expected one of `)`, `att_syntax`, or `raw`, found `FOO` 262 --> $DIR/parse-error.rs:113:25 263 | 264LL | global_asm!("", options(FOO)); 265 | ^^^ expected one of `)`, `att_syntax`, or `raw` 266 267error: expected one of `)`, `att_syntax`, or `raw`, found `nomem` 268 --> $DIR/parse-error.rs:115:25 269 | 270LL | global_asm!("", options(nomem FOO)); 271 | ^^^^^ expected one of `)`, `att_syntax`, or `raw` 272 273error: expected one of `)`, `att_syntax`, or `raw`, found `nomem` 274 --> $DIR/parse-error.rs:117:25 275 | 276LL | global_asm!("", options(nomem, FOO)); 277 | ^^^^^ expected one of `)`, `att_syntax`, or `raw` 278 279error: expected string literal 280 --> $DIR/parse-error.rs:120:29 281 | 282LL | global_asm!("", clobber_abi(FOO)); 283 | ^^^ not a string literal 284 285error: expected one of `)` or `,`, found `FOO` 286 --> $DIR/parse-error.rs:122:33 287 | 288LL | global_asm!("", clobber_abi("C" FOO)); 289 | ^^^ expected one of `)` or `,` 290 291error: expected string literal 292 --> $DIR/parse-error.rs:124:34 293 | 294LL | global_asm!("", clobber_abi("C", FOO)); 295 | ^^^ not a string literal 296 297error: `clobber_abi` cannot be used with `global_asm!` 298 --> $DIR/parse-error.rs:126:19 299 | 300LL | global_asm!("{}", clobber_abi("C"), const FOO); 301 | ^^^^^^^^^^^^^^^^ 302 303error: `clobber_abi` cannot be used with `global_asm!` 304 --> $DIR/parse-error.rs:128:28 305 | 306LL | global_asm!("", options(), clobber_abi("C")); 307 | ^^^^^^^^^^^^^^^^ 308 309error: `clobber_abi` cannot be used with `global_asm!` 310 --> $DIR/parse-error.rs:130:30 311 | 312LL | global_asm!("{}", options(), clobber_abi("C"), const FOO); 313 | ^^^^^^^^^^^^^^^^ 314 315error: `clobber_abi` cannot be used with `global_asm!` 316 --> $DIR/parse-error.rs:132:17 317 | 318LL | global_asm!("", clobber_abi("C"), clobber_abi("C")); 319 | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ 320 321error: duplicate argument named `a` 322 --> $DIR/parse-error.rs:134:35 323 | 324LL | global_asm!("{a}", a = const FOO, a = const BAR); 325 | ------------- ^^^^^^^^^^^^^ duplicate argument 326 | | 327 | previously here 328 329error: argument never used 330 --> $DIR/parse-error.rs:134:35 331 | 332LL | global_asm!("{a}", a = const FOO, a = const BAR); 333 | ^^^^^^^^^^^^^ argument never used 334 | 335 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {1} */"` 336 337error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `""` 338 --> $DIR/parse-error.rs:137:28 339 | 340LL | global_asm!("", options(), ""); 341 | ^^ expected one of `clobber_abi`, `const`, `options`, or `sym` 342 343error: expected one of `clobber_abi`, `const`, `options`, or `sym`, found `"{}"` 344 --> $DIR/parse-error.rs:139:30 345 | 346LL | global_asm!("{}", const FOO, "{}", const FOO); 347 | ^^^^ expected one of `clobber_abi`, `const`, `options`, or `sym` 348 349error: asm template must be a string literal 350 --> $DIR/parse-error.rs:141:13 351 | 352LL | global_asm!(format!("{{{}}}", 0), const FOO); 353 | ^^^^^^^^^^^^^^^^^^^^ 354 | 355 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) 356 357error: asm template must be a string literal 358 --> $DIR/parse-error.rs:143:20 359 | 360LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR); 361 | ^^^^^^^^^^^^^^^^^^^^ 362 | 363 = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) 364 365error[E0435]: attempt to use a non-constant value in a constant 366 --> $DIR/parse-error.rs:39:37 367 | 368LL | let mut foo = 0; 369 | ----------- help: consider using `const` instead of `let`: `const foo` 370... 371LL | asm!("{}", options(), const foo); 372 | ^^^ non-constant value 373 374error[E0435]: attempt to use a non-constant value in a constant 375 --> $DIR/parse-error.rs:71:44 376 | 377LL | let mut foo = 0; 378 | ----------- help: consider using `const` instead of `let`: `const foo` 379... 380LL | asm!("{}", clobber_abi("C"), const foo); 381 | ^^^ non-constant value 382 383error[E0435]: attempt to use a non-constant value in a constant 384 --> $DIR/parse-error.rs:74:55 385 | 386LL | let mut foo = 0; 387 | ----------- help: consider using `const` instead of `let`: `const foo` 388... 389LL | asm!("{}", options(), clobber_abi("C"), const foo); 390 | ^^^ non-constant value 391 392error[E0435]: attempt to use a non-constant value in a constant 393 --> $DIR/parse-error.rs:76:31 394 | 395LL | let mut foo = 0; 396 | ----------- help: consider using `const` instead of `let`: `const foo` 397... 398LL | asm!("{a}", a = const foo, a = const bar); 399 | ^^^ non-constant value 400 401error[E0435]: attempt to use a non-constant value in a constant 402 --> $DIR/parse-error.rs:76:46 403 | 404LL | let mut bar = 0; 405 | ----------- help: consider using `const` instead of `let`: `const bar` 406... 407LL | asm!("{a}", a = const foo, a = const bar); 408 | ^^^ non-constant value 409 410error: aborting due to 63 previous errors 411 412For more information about this error, try `rustc --explain E0435`.