]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/getopts_ref.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / run-pass / getopts_ref.rs
index c9595d09e21b2125cd75e09072a879e5800f9d36..90726c21fac472db923f21dfc92c42f93ad175e9 100644 (file)
@@ -17,7 +17,7 @@ use getopts::{optopt, getopts};
 
 pub fn main() {
     let args = Vec::new();
-    let opts = vec!(optopt("b", "", "something", "SMTHNG"));
+    let opts = vec![optopt("b", "", "something", "SMTHNG")];
 
     match getopts(&args, &opts) {
         Ok(ref m)  =>