@@ -376,8 +376,8 @@ LL | asm!("{}", options(), const foo);
376376 |
377377help: consider using `const` instead of `let`
378378 |
379- LL | const foo = 0;
380- | ~~~~~
379+ LL | const foo: /* Type */ = 0;
380+ | ~~~~~ ++++++++++++
381381
382382error[E0435]: attempt to use a non-constant value in a constant
383383 --> $DIR/parse-error.rs:71:44
@@ -387,8 +387,8 @@ LL | asm!("{}", clobber_abi("C"), const foo);
387387 |
388388help: consider using `const` instead of `let`
389389 |
390- LL | const foo = 0;
391- | ~~~~~
390+ LL | const foo: /* Type */ = 0;
391+ | ~~~~~ ++++++++++++
392392
393393error[E0435]: attempt to use a non-constant value in a constant
394394 --> $DIR/parse-error.rs:74:55
@@ -398,8 +398,8 @@ LL | asm!("{}", options(), clobber_abi("C"), const foo);
398398 |
399399help: consider using `const` instead of `let`
400400 |
401- LL | const foo = 0;
402- | ~~~~~
401+ LL | const foo: /* Type */ = 0;
402+ | ~~~~~ ++++++++++++
403403
404404error[E0435]: attempt to use a non-constant value in a constant
405405 --> $DIR/parse-error.rs:76:31
@@ -409,8 +409,8 @@ LL | asm!("{a}", a = const foo, a = const bar);
409409 |
410410help: consider using `const` instead of `let`
411411 |
412- LL | const foo = 0;
413- | ~~~~~
412+ LL | const foo: /* Type */ = 0;
413+ | ~~~~~ ++++++++++++
414414
415415error[E0435]: attempt to use a non-constant value in a constant
416416 --> $DIR/parse-error.rs:76:46
@@ -420,8 +420,8 @@ LL | asm!("{a}", a = const foo, a = const bar);
420420 |
421421help: consider using `const` instead of `let`
422422 |
423- LL | const bar = 0;
424- | ~~~~~
423+ LL | const bar: /* Type */ = 0;
424+ | ~~~~~ ++++++++++++
425425
426426error: aborting due to 64 previous errors
427427
0 commit comments