rust/tests/ui/consts/const-blocks
Esteban Küber ac980cace8 Make obligation cause code suggestions verbose
```
error[E0277]: `()` is not a future
  --> $DIR/unnecessary-await.rs:28:10
   |
LL |     e!().await;
   |          ^^^^^ `()` is not a future
   |
   = help: the trait `Future` is not implemented for `()`
   = note: () must be a future or must implement `IntoFuture` to be awaited
   = note: required for `()` to implement `IntoFuture`
help: remove the `.await`
   |
LL -     e!().await;
LL +     e!();
   |
```
```
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/const-fn-in-vec.rs:1:47
   |
LL | static _MAYBE_STRINGS: [Option<String>; 5] = [None; 5];
   |                                               ^^^^ the trait `Copy` is not implemented for `String`
   |
   = note: required for `Option<String>` to implement `Copy`
   = note: the `Copy` trait is required because this value will be copied for each element of the array
help: create an inline `const` block
   |
LL | static _MAYBE_STRINGS: [Option<String>; 5] = [const { None }; 5];
   |                                               +++++++      +
```
2025-06-06 20:12:11 +00:00
..
const-block-in-array-size.rs Add test for issue 125668 2025-04-15 23:51:10 +09:00
const-repeat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fn-call-in-const.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
fn-call-in-non-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fn-call-in-non-const.stderr Make obligation cause code suggestions verbose 2025-06-06 20:12:11 +00:00
migrate-fail.rs Use non-2015 edition paths in tests that do not test for their resolution 2025-06-03 10:13:33 +02:00
migrate-fail.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
migrate-pass.rs Use non-2015 edition paths in tests that do not test for their resolution 2025-06-03 10:13:33 +02:00
nll-fail.rs Use non-2015 edition paths in tests that do not test for their resolution 2025-06-03 10:13:33 +02:00
nll-fail.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
nll-pass.rs Use non-2015 edition paths in tests that do not test for their resolution 2025-06-03 10:13:33 +02:00
run-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-error.stderr Make obligation cause code suggestions verbose 2025-06-06 20:12:11 +00:00