Add test for issue-49544

This commit is contained in:
Yuki Okushi 2019-08-04 20:20:40 +09:00
parent 416caa10ed
commit 620567d87e
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#![crate_type = "lib"]
pub fn foo() -> Vec<String> {
std::env::args()
.skip(1)
.collect()
}

View File

@ -0,0 +1,9 @@
// aux-build:issue-49544.rs
// check-pass
extern crate issue_49544;
use issue_49544::foo;
fn main() {
let _ = foo();
}