mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
17 lines
277 B
Rust
17 lines
277 B
Rust
//@ 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];
|
|
}
|