summaryrefslogtreecommitdiffstats
path: root/tests/ui/array-slice-vec/vec-macro-with-brackets.rs
blob: 6c95bd50007f57cd7bbe9b5af8e74edfe34999dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
#![allow(unused_variables)]

// pretty-expanded FIXME #23616

macro_rules! vec [
    ($($e:expr),*) => ({
        let mut _temp = ::std::vec::Vec::new();
        $(_temp.push($e);)*
        _temp
    })
];

pub fn main() {
    let my_vec = vec![1, 2, 3, 4, 5];
}