exercism-solutions/rust/macros/tests/invalid/no-comma.rs

8 lines
176 B
Rust
Raw Normal View History

2024-01-07 18:35:20 -06:00
use macros::hashmap;
use std::collections::HashMap;
fn main() {
// Key value pairs must be separated by commas
let _hm: HashMap<_, _> = hashmap!('a' => 1 'b' => 2);
}