rust/tests/ui/repeat-expr
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
..
copy-check-const-element-uninferred-count.rs Check for element being const before resolving repeat count 2025-05-21 20:38:49 +01:00
copy-check-const-element-uninferred-count.stderr Check for element being const before resolving repeat count 2025-05-21 20:38:49 +01:00
copy-check-deferred-after-fallback.rs Properly test whether repeat expr checks are pre/post integer fallback 2025-05-21 20:38:49 +01:00
copy-check-deferred-after-fallback.stderr Properly test whether repeat expr checks are pre/post integer fallback 2025-05-21 20:38:49 +01:00
copy-check-deferred-before-fallback.rs Reviews 2025-05-22 11:39:49 +01:00
copy-check-inference-side-effects.rs Reviews 2025-05-22 11:39:49 +01:00
copy-check-inference-side-effects.stderr Don't allow repeat expr count inference side effects to propagate 2025-05-21 20:38:49 +01:00
copy-check-when-count-inferred-later.rs Add test 2025-05-26 16:35:36 +01:00
copy-check-when-count-inferred-later.stderr Make obligation cause code suggestions verbose 2025-06-06 20:12:11 +00:00
copy-inference-side-effects-are-lazy.gai.stderr Bless 2025-02-27 20:02:25 +00:00
copy-inference-side-effects-are-lazy.rs GAI logic on stable too 2025-05-21 20:38:49 +01:00
copy-inference-side-effects-are-lazy.stderr GAI logic on stable too 2025-05-21 20:38:49 +01:00
copy-inference-side-effects.rs Bless 2025-02-27 20:02:25 +00:00
dont-require-copy-on-infer.rs Bless 2025-02-27 20:02:25 +00:00
no-conservative-copy-impl-requirement.rs Bless 2025-02-27 20:02:25 +00:00
no-conservative-copy-impl-requirement.stderr Bless 2025-02-27 20:02:25 +00:00
repeat-expr-in-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
repeat-to-run-dtor-twice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat-to-run-dtor-twice.stderr Remove extra # from url 2024-01-24 00:41:45 +01:00
repeat_count.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
repeat_count.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
typo-in-repeat-expr-issue-80173.rs Suggest Semicolon in Incorrect Repeat Expressions 2024-12-21 02:30:50 +00:00
typo-in-repeat-expr-issue-80173.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00