diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-24 17:22:54 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-31 21:25:49 +0500 |
| commit | a4a5bf5a71bd0c3fb52a28f81d88ce1755b3bc30 (patch) | |
| tree | b69177434a4026599cbd602cc2aee39759f89cdd /tests/ui/const-generics/vec-macro-in-static-array.stderr | |
| parent | d636a6590ce1429ff011e04bb0b4d393dc382226 (diff) | |
| download | rust-a4a5bf5a71bd0c3fb52a28f81d88ce1755b3bc30.tar.gz rust-a4a5bf5a71bd0c3fb52a28f81d88ce1755b3bc30.zip | |
comments
Diffstat (limited to 'tests/ui/const-generics/vec-macro-in-static-array.stderr')
| -rw-r--r-- | tests/ui/const-generics/vec-macro-in-static-array.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/const-generics/vec-macro-in-static-array.stderr b/tests/ui/const-generics/vec-macro-in-static-array.stderr new file mode 100644 index 00000000000..de21f2274f3 --- /dev/null +++ b/tests/ui/const-generics/vec-macro-in-static-array.stderr @@ -0,0 +1,13 @@ +error[E0308]: mismatched types + --> $DIR/vec-macro-in-static-array.rs:5:26 + | +LL | static VEC: [u32; 256] = vec![]; + | ^^^^^^ expected `[u32; 256]`, found `Vec<_>` + | + = 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) + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0308`. |
