Add test for issue-49544
This commit is contained in:
parent
416caa10ed
commit
620567d87e
7
src/test/ui/issues/auxiliary/issue-49544.rs
Normal file
7
src/test/ui/issues/auxiliary/issue-49544.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn foo() -> Vec<String> {
|
||||
std::env::args()
|
||||
.skip(1)
|
||||
.collect()
|
||||
}
|
9
src/test/ui/issues/issue-49544.rs
Normal file
9
src/test/ui/issues/issue-49544.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// aux-build:issue-49544.rs
|
||||
// check-pass
|
||||
|
||||
extern crate issue_49544;
|
||||
use issue_49544::foo;
|
||||
|
||||
fn main() {
|
||||
let _ = foo();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user