Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
16
tests/ui/array-slice-vec/vec-macro-with-brackets.rs
Normal file
16
tests/ui/array-slice-vec/vec-macro-with-brackets.rs
Normal file
|
@ -0,0 +1,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];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue