Skip to content

Commit 620567d

Browse files
committed
Add test for issue-49544
1 parent 416caa1 commit 620567d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![crate_type = "lib"]
2+
3+
pub fn foo() -> Vec<String> {
4+
std::env::args()
5+
.skip(1)
6+
.collect()
7+
}

src/test/ui/issues/issue-49544.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// aux-build:issue-49544.rs
2+
// check-pass
3+
4+
extern crate issue_49544;
5+
use issue_49544::foo;
6+
7+
fn main() {
8+
let _ = foo();
9+
}

0 commit comments

Comments
 (0)