Files
rust/tests/ui/const-generics/vec-macro-in-static-array.stderr

14 lines
498 B
Plaintext
Raw Permalink Normal View History

2018-07-15 14:11:54 -07:00
error[E0308]: mismatched types
2025-07-24 17:22:54 +05:00
--> $DIR/vec-macro-in-static-array.rs:5:26
2018-07-15 14:11:54 -07:00
|
LL | static VEC: [u32; 256] = vec![];
| ^^^^^^ expected `[u32; 256]`, found `Vec<_>`
2018-07-15 14:11:54 -07:00
|
= note: expected array `[u32; 256]`
found struct `Vec<_>`
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0308`.