@@ -371,47 +371,57 @@ LL | global_asm!("{}", label {});
371
371
error[E0435]: attempt to use a non-constant value in a constant
372
372
--> $DIR/parse-error.rs:39:37
373
373
|
374
- LL | let mut foo = 0;
375
- | ----------- help: consider using `const` instead of `let`: `const foo`
376
- ...
377
374
LL | asm!("{}", options(), const foo);
378
375
| ^^^ non-constant value
376
+ |
377
+ help: consider using `const` instead of `let`
378
+ |
379
+ LL | const foo = 0;
380
+ | ~~~~~
379
381
380
382
error[E0435]: attempt to use a non-constant value in a constant
381
383
--> $DIR/parse-error.rs:71:44
382
384
|
383
- LL | let mut foo = 0;
384
- | ----------- help: consider using `const` instead of `let`: `const foo`
385
- ...
386
385
LL | asm!("{}", clobber_abi("C"), const foo);
387
386
| ^^^ non-constant value
387
+ |
388
+ help: consider using `const` instead of `let`
389
+ |
390
+ LL | const foo = 0;
391
+ | ~~~~~
388
392
389
393
error[E0435]: attempt to use a non-constant value in a constant
390
394
--> $DIR/parse-error.rs:74:55
391
395
|
392
- LL | let mut foo = 0;
393
- | ----------- help: consider using `const` instead of `let`: `const foo`
394
- ...
395
396
LL | asm!("{}", options(), clobber_abi("C"), const foo);
396
397
| ^^^ non-constant value
398
+ |
399
+ help: consider using `const` instead of `let`
400
+ |
401
+ LL | const foo = 0;
402
+ | ~~~~~
397
403
398
404
error[E0435]: attempt to use a non-constant value in a constant
399
405
--> $DIR/parse-error.rs:76:31
400
406
|
401
- LL | let mut foo = 0;
402
- | ----------- help: consider using `const` instead of `let`: `const foo`
403
- ...
404
407
LL | asm!("{a}", a = const foo, a = const bar);
405
408
| ^^^ non-constant value
409
+ |
410
+ help: consider using `const` instead of `let`
411
+ |
412
+ LL | const foo = 0;
413
+ | ~~~~~
406
414
407
415
error[E0435]: attempt to use a non-constant value in a constant
408
416
--> $DIR/parse-error.rs:76:46
409
417
|
410
- LL | let mut bar = 0;
411
- | ----------- help: consider using `const` instead of `let`: `const bar`
412
- ...
413
418
LL | asm!("{a}", a = const foo, a = const bar);
414
419
| ^^^ non-constant value
420
+ |
421
+ help: consider using `const` instead of `let`
422
+ |
423
+ LL | const bar = 0;
424
+ | ~~~~~
415
425
416
426
error: aborting due to 64 previous errors
417
427
0 commit comments