@@ -376,8 +376,9 @@ LL | asm!("{}", options(), const foo);
376376 |
377377help: consider using `const` instead of `let`
378378 |
379- LL | const foo: /* Type */ = 0;
380- | ~~~~~ ++++++++++++
379+ LL - let mut foo = 0;
380+ LL + const foo: /* Type */ = 0;
381+ |
381382
382383error[E0435]: attempt to use a non-constant value in a constant
383384 --> $DIR/parse-error.rs:71:44
@@ -387,8 +388,9 @@ LL | asm!("{}", clobber_abi("C"), const foo);
387388 |
388389help: consider using `const` instead of `let`
389390 |
390- LL | const foo: /* Type */ = 0;
391- | ~~~~~ ++++++++++++
391+ LL - let mut foo = 0;
392+ LL + const foo: /* Type */ = 0;
393+ |
392394
393395error[E0435]: attempt to use a non-constant value in a constant
394396 --> $DIR/parse-error.rs:74:55
@@ -398,8 +400,9 @@ LL | asm!("{}", options(), clobber_abi("C"), const foo);
398400 |
399401help: consider using `const` instead of `let`
400402 |
401- LL | const foo: /* Type */ = 0;
402- | ~~~~~ ++++++++++++
403+ LL - let mut foo = 0;
404+ LL + const foo: /* Type */ = 0;
405+ |
403406
404407error[E0435]: attempt to use a non-constant value in a constant
405408 --> $DIR/parse-error.rs:76:31
@@ -409,8 +412,9 @@ LL | asm!("{a}", a = const foo, a = const bar);
409412 |
410413help: consider using `const` instead of `let`
411414 |
412- LL | const foo: /* Type */ = 0;
413- | ~~~~~ ++++++++++++
415+ LL - let mut foo = 0;
416+ LL + const foo: /* Type */ = 0;
417+ |
414418
415419error[E0435]: attempt to use a non-constant value in a constant
416420 --> $DIR/parse-error.rs:76:46
@@ -420,8 +424,9 @@ LL | asm!("{a}", a = const foo, a = const bar);
420424 |
421425help: consider using `const` instead of `let`
422426 |
423- LL | const bar: /* Type */ = 0;
424- | ~~~~~ ++++++++++++
427+ LL - let mut bar = 0;
428+ LL + const bar: /* Type */ = 0;
429+ |
425430
426431error: aborting due to 64 previous errors
427432
0 commit comments