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