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
d636a6590ce1429ff011e04bb0b4d393dc382226
rust/tests/ui/const-generics/vec-macro-in-static-array.rs

7 lines
97 B
Rust
Raw Normal View History

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: 8233ms Template: 3ms
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