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