Files
rust/tests/ui/repeat-expr/copy-check-deferred-after-fallback.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
544 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed for `[Foo<{integer}>; _]`
2025-06-11 15:30:15 +01:00
--> $DIR/copy-check-deferred-after-fallback.rs:37:9
2025-02-15 02:01:41 +00:00
|
LL | let b = [Foo(PhantomData); _];
| ^ ---------------- type must be known at this point
2025-02-15 02:01:41 +00:00
|
help: consider giving `b` an explicit type, where the value of const parameter `N` is specified
|
LL | let b: [Foo<{integer}>; N] = [Foo(PhantomData); _];
| +++++++++++++++++++++
2025-02-15 02:01:41 +00:00
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0282`.