aboutsummaryrefslogtreecommitdiff
path: root/rust/macros/tests/invalid/missing-argument.rs
blob: 893d609f1e6df8b9ea5786aa9ea692591c66ee84 (plain) (blame)
1
2
3
4
5
6
7
use macros::hashmap;
use std::collections::HashMap;

fn main() {
    // an argument should come between each pair of commas
    let _hm: HashMap<_, _> = hashmap!('a' => 1, , 'b' => 2);
}