diff options
| author | Federico Igne <git@federicoigne.com> | 2021-11-08 18:06:56 +0000 |
|---|---|---|
| committer | Federico Igne <git@federicoigne.com> | 2021-11-08 18:06:56 +0000 |
| commit | cd067503a7546eaee904a9b5c6ae30eb0175d376 (patch) | |
| tree | 2f625fc40314fa2abbe60da496b6f0993af8a779 /rust/macros/tests/invalid/comma-sep.rs | |
| parent | b6d7705471f0a583f1d115472ddbc8c4f8a420a9 (diff) | |
| download | exercism-cd067503a7546eaee904a9b5c6ae30eb0175d376.tar.gz exercism-cd067503a7546eaee904a9b5c6ae30eb0175d376.zip | |
[rust] Macros
Diffstat (limited to 'rust/macros/tests/invalid/comma-sep.rs')
| -rw-r--r-- | rust/macros/tests/invalid/comma-sep.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/macros/tests/invalid/comma-sep.rs b/rust/macros/tests/invalid/comma-sep.rs new file mode 100644 index 0000000..c9b6f44 --- /dev/null +++ b/rust/macros/tests/invalid/comma-sep.rs | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | use macros::hashmap; | ||
| 2 | use std::collections::HashMap; | ||
| 3 | |||
| 4 | fn main() { | ||
| 5 | // using only commas is invalid | ||
| 6 | let _hm: HashMap<_, _> = hashmap!('a', 1); | ||
| 7 | } | ||
