Use verbose style when suggesting changing `const` with `let` · rust-lang/rust@b56dc8e
@@ -371,47 +371,57 @@ LL | global_asm!("{}", label {});
371371error[E0435]: attempt to use a non-constant value in a constant
372372 --> $DIR/parse-error.rs:39:37
373373 |
374-LL | let mut foo = 0;
375- | ----------- help: consider using `const` instead of `let`: `const foo`
376-...
377374LL | asm!("{}", options(), const foo);
378375 | ^^^ non-constant value
376+ |
377+help: consider using `const` instead of `let`
378+ |
379+LL | const foo = 0;
380+ | ~~~~~
379381380382error[E0435]: attempt to use a non-constant value in a constant
381383 --> $DIR/parse-error.rs:71:44
382384 |
383-LL | let mut foo = 0;
384- | ----------- help: consider using `const` instead of `let`: `const foo`
385-...
386385LL | asm!("{}", clobber_abi("C"), const foo);
387386 | ^^^ non-constant value
387+ |
388+help: consider using `const` instead of `let`
389+ |
390+LL | const foo = 0;
391+ | ~~~~~
388392389393error[E0435]: attempt to use a non-constant value in a constant
390394 --> $DIR/parse-error.rs:74:55
391395 |
392-LL | let mut foo = 0;
393- | ----------- help: consider using `const` instead of `let`: `const foo`
394-...
395396LL | asm!("{}", options(), clobber_abi("C"), const foo);
396397 | ^^^ non-constant value
398+ |
399+help: consider using `const` instead of `let`
400+ |
401+LL | const foo = 0;
402+ | ~~~~~
397403398404error[E0435]: attempt to use a non-constant value in a constant
399405 --> $DIR/parse-error.rs:76:31
400406 |
401-LL | let mut foo = 0;
402- | ----------- help: consider using `const` instead of `let`: `const foo`
403-...
404407LL | asm!("{a}", a = const foo, a = const bar);
405408 | ^^^ non-constant value
409+ |
410+help: consider using `const` instead of `let`
411+ |
412+LL | const foo = 0;
413+ | ~~~~~
406414407415error[E0435]: attempt to use a non-constant value in a constant
408416 --> $DIR/parse-error.rs:76:46
409417 |
410-LL | let mut bar = 0;
411- | ----------- help: consider using `const` instead of `let`: `const bar`
412-...
413418LL | asm!("{a}", a = const foo, a = const bar);
414419 | ^^^ non-constant value
420+ |
421+help: consider using `const` instead of `let`
422+ |
423+LL | const bar = 0;
424+ | ~~~~~
415425416426error: aborting due to 64 previous errors
417427