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

fn main() {
    // a single trailing comma is okay, but two is not
    let _hm: HashMap<_, _> = hashmap!('a' => 2, ,);
}