@@ -313,74 +313,90 @@ LL | global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
313313error[E0435]: attempt to use a non-constant value in a constant
314314 --> $DIR/parse-error.rs:39:37
315315 |
316- LL | let mut foo = 0;
317- | ----------- help: consider using `const` instead of `let`: `const foo`
318- ...
319316LL | asm!("{}", options(), const foo);
320317 | ^^^ non-constant value
318+ |
319+ help: consider using `const` instead of `let`
320+ |
321+ LL | const foo: /* Type */ = 0;
322+ | ~~~~~ ++++++++++++
321323
322324error[E0435]: attempt to use a non-constant value in a constant
323325 --> $DIR/parse-error.rs:47:44
324326 |
325- LL | let mut foo = 0;
326- | ----------- help: consider using `const` instead of `let`: `const foo`
327- ...
328327LL | asm!("{}", clobber_abi("C"), const foo);
329328 | ^^^ non-constant value
329+ |
330+ help: consider using `const` instead of `let`
331+ |
332+ LL | const foo: /* Type */ = 0;
333+ | ~~~~~ ++++++++++++
330334
331335error[E0435]: attempt to use a non-constant value in a constant
332336 --> $DIR/parse-error.rs:50:55
333337 |
334- LL | let mut foo = 0;
335- | ----------- help: consider using `const` instead of `let`: `const foo`
336- ...
337338LL | asm!("{}", options(), clobber_abi("C"), const foo);
338339 | ^^^ non-constant value
340+ |
341+ help: consider using `const` instead of `let`
342+ |
343+ LL | const foo: /* Type */ = 0;
344+ | ~~~~~ ++++++++++++
339345
340346error[E0435]: attempt to use a non-constant value in a constant
341347 --> $DIR/parse-error.rs:52:31
342348 |
343- LL | let mut foo = 0;
344- | ----------- help: consider using `const` instead of `let`: `const foo`
345- ...
346349LL | asm!("{a}", a = const foo, a = const bar);
347350 | ^^^ non-constant value
351+ |
352+ help: consider using `const` instead of `let`
353+ |
354+ LL | const foo: /* Type */ = 0;
355+ | ~~~~~ ++++++++++++
348356
349357error[E0435]: attempt to use a non-constant value in a constant
350358 --> $DIR/parse-error.rs:52:46
351359 |
352- LL | let mut bar = 0;
353- | ----------- help: consider using `const` instead of `let`: `const bar`
354- ...
355360LL | asm!("{a}", a = const foo, a = const bar);
356361 | ^^^ non-constant value
362+ |
363+ help: consider using `const` instead of `let`
364+ |
365+ LL | const bar: /* Type */ = 0;
366+ | ~~~~~ ++++++++++++
357367
358368error[E0435]: attempt to use a non-constant value in a constant
359369 --> $DIR/parse-error.rs:59:45
360370 |
361- LL | let mut bar = 0;
362- | ----------- help: consider using `const` instead of `let`: `const bar`
363- ...
364371LL | asm!("{a}", in("x0") foo, a = const bar);
365372 | ^^^ non-constant value
373+ |
374+ help: consider using `const` instead of `let`
375+ |
376+ LL | const bar: /* Type */ = 0;
377+ | ~~~~~ ++++++++++++
366378
367379error[E0435]: attempt to use a non-constant value in a constant
368380 --> $DIR/parse-error.rs:61:45
369381 |
370- LL | let mut bar = 0;
371- | ----------- help: consider using `const` instead of `let`: `const bar`
372- ...
373382LL | asm!("{a}", in("x0") foo, a = const bar);
374383 | ^^^ non-constant value
384+ |
385+ help: consider using `const` instead of `let`
386+ |
387+ LL | const bar: /* Type */ = 0;
388+ | ~~~~~ ++++++++++++
375389
376390error[E0435]: attempt to use a non-constant value in a constant
377391 --> $DIR/parse-error.rs:63:41
378392 |
379- LL | let mut bar = 0;
380- | ----------- help: consider using `const` instead of `let`: `const bar`
381- ...
382393LL | asm!("{1}", in("x0") foo, const bar);
383394 | ^^^ non-constant value
395+ |
396+ help: consider using `const` instead of `let`
397+ |
398+ LL | const bar: /* Type */ = 0;
399+ | ~~~~~ ++++++++++++
384400
385401error: aborting due to 57 previous errors
386402
0 commit comments