Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/ui/const-generics/vec-macro-in-static-array.rs

9 lines
169 B
Rust
Raw Normal View History

comments
2025-07-24 17:22:54 +05:00
//! Regression test for https://github.com/rust-lang/rust/issues/13446
Add test for issue #13446 Closes #13446
2014-06-09 07:44:49 +02:00
// Used to cause ICE
Changed most vec! invocations to use square braces Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-29 22:54:04 +01:00
static VEC: [u32; 256] = vec![];
Match errors using the callsite of macro expansions
2018-07-19 14:15:43 +02:00
//~^ ERROR mismatched types
Add test for issue #13446 Closes #13446
2014-06-09 07:44:49 +02:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4605ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API